mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
Fixed migrate for x64 meterpreter (Tested on Win 7 and 2003).
git-svn-id: file:///home/svn/framework3/trunk@6999 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
8bb0efb97e
commit
d584b4d314
Binary file not shown.
Binary file not shown.
@ -166,11 +166,19 @@ class ClientCore < Extension
|
||||
# by pid. The connection to the server remains established.
|
||||
#
|
||||
def migrate( pid )
|
||||
|
||||
|
||||
# Create a new payload stub
|
||||
c = Class.new( ::Msf::Payload )
|
||||
c.include( ::Msf::Payload::Stager )
|
||||
c.include( ::Msf::Payload::Windows::ReflectiveDllInject )
|
||||
|
||||
# Include the appropriate reflective dll injection module for the client architecture...
|
||||
if( client.platform == 'x86/win32' )
|
||||
c.include( ::Msf::Payload::Windows::ReflectiveDllInject )
|
||||
elsif( client.platform == 'x64/win64' )
|
||||
c.include( ::Msf::Payload::Windows::ReflectiveDllInject_x64 )
|
||||
else
|
||||
raise RuntimeError, "Unsupported migrate client platform #{client.platform}.", caller
|
||||
end
|
||||
|
||||
# Create the migrate stager
|
||||
migrate_stager = c.new()
|
||||
|
Loading…
Reference in New Issue
Block a user