2007-02-18 00:10:39 +00:00
|
|
|
##
|
|
|
|
# $Id:$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/projects/Framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
2006-09-14 06:09:46 +00:00
|
|
|
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'],
|
2007-02-18 00:10:39 +00:00
|
|
|
'Version' => '$Revision$',
|
2006-09-14 06:09:46 +00:00
|
|
|
'References' => [ ],
|
|
|
|
'Payload' =>
|
|
|
|
{
|
2007-02-15 22:17:50 +00:00
|
|
|
'Space' => 100000,
|
|
|
|
'BadChars' => '',
|
|
|
|
'DisableNops' => true,
|
2006-09-14 06:09:46 +00:00
|
|
|
},
|
|
|
|
'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)
|
2006-09-14 06:22:24 +00:00
|
|
|
sleep(1)
|
2006-09-14 06:09:46 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|