Module: Ronin::Payloads::Mixins::PostEx
- Included in:
- BindShell, ReverseShell
- Defined in:
- lib/ronin/payloads/mixins/post_ex.rb
Overview
Adds post-exploitation functionality to a payload class.
Instance Attribute Summary collapse
-
#session ⇒ Ronin::PostEx::Session?
The post-exploitation session.
Instance Method Summary collapse
-
#perform_cleanup ⇒ Object
Closes the #session if it has been set.
Instance Attribute Details
#session ⇒ Ronin::PostEx::Session?
The post-exploitation session.
32 33 34 |
# File 'lib/ronin/payloads/mixins/post_ex.rb', line 32 def session @session end |
Instance Method Details
#perform_cleanup ⇒ Object
Closes the #session if it has been set.
37 38 39 40 41 42 43 44 |
# File 'lib/ronin/payloads/mixins/post_ex.rb', line 37 def perform_cleanup if @session @session.close @session = nil end super end |