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

Instance Method Summary collapse

Instance Attribute Details

#sessionRonin::PostEx::Session?

The post-exploitation session.

Returns:

  • (Ronin::PostEx::Session, nil)


32
33
34
# File 'lib/ronin/payloads/mixins/post_ex.rb', line 32

def session
  @session
end

Instance Method Details

#perform_cleanupObject

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