metasploit-framework/modules/post/multi/general/close.rb

28 lines
746 B
Ruby
Raw Normal View History

##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'rex'
class Metasploit3 < Msf::Post
2013-08-30 21:28:54 +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 },
2013-08-30 21:28:54 +00:00
'SessionTypes' => [ 'shell', 'meterpreter' ]
))
end
2013-08-30 21:28:54 +00:00
def run
print_status("Closing session #{session.inspect}...")
session.kill
end
end