metasploit-framework/modules/exploits/multi/handler.rb

46 lines
1.0 KiB
Ruby
Raw Normal View History

require 'msf/core'
module Msf
class Exploits::Multi::Handler < Msf::Exploit::Remote
#
# This module does basically nothing
#
def initialize(info = {})
super(update_info(info,
'Name' => 'Generic Payload Handler',
'Description' => %q{
This module is a stub that provides all of the
features of the Metasploit payload system to exploits
that have been launched outside of the framework.
},
'License' => MSF_LICENSE,
'Author' => ['hdm'],
'Version' => '$Revision: 3637 $',
'References' => [ ],
'Payload' =>
{
'Space' => 10000,
'BadChars' => '',
},
'Platform' => [ 'win', 'linux', 'solaris', 'unix', 'osx', 'bsd' ],
'Arch' => [ ARCH_X86, ARCH_PPC, ARCH_SPARC, ARCH_CMD ],
'Targets' => [ [ 'Wildcard Target', { } ] ],
'DefaultTarget' => 0
))
end
def exploit
print_status "Starting the payload handler..."
while(true)
sleep(1)
break if session_created?
end
end
end
end