21f6127e29
Change all Platform 'windows' to 'win', as it internally is an alias anyway and only causes unnecessary confusion to have two platform names that mean the same.
35 lines
877 B
Ruby
35 lines
877 B
Ruby
##
|
|
# $Id$
|
|
##
|
|
|
|
##
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
# web site for more information on licensing and terms of use.
|
|
# http://metasploit.com/
|
|
##
|
|
|
|
require 'msf/core'
|
|
require 'rex'
|
|
|
|
class Metasploit3 < Msf::Post
|
|
|
|
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' ],
|
|
'Version' => '$Revision$',
|
|
'Platform' => [ 'linux', 'win', 'unix', 'osx' ],
|
|
'SessionTypes' => [ 'shell', 'meterpreter' ]
|
|
))
|
|
end
|
|
|
|
def run
|
|
print_status("Closing session #{session.inspect}...")
|
|
session.kill
|
|
end
|
|
|
|
end
|