Files
metasploit-gs/modules/post/multi/general/close.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
721 B
Ruby
Raw Normal View History

2011-08-25 19:07:18 +00:00
##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2011-08-25 19:07:18 +00:00
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Post
2011-08-25 19:07:18 +00:00
2023-02-08 13:47:34 +00:00
def initialize(info = {})
super(
update_info(
info,
'Name' => 'Multi Generic Operating System Session Close',
'Description' => %q{ This module closes the specified session. This can be useful as a finisher for automation tasks },
'License' => MSF_LICENSE,
'Author' => [ 'hdm' ],
'Platform' => %w[linux osx unix win],
'SessionTypes' => [ 'shell', 'meterpreter' ]
)
)
2011-08-25 19:07:18 +00:00
end
def run
print_status("Closing session #{session.inspect}...")
session.kill
end
end