Land #7612, Race condition when loading auto_win32_multihandler.rc

Fixes #7603
bug/bundler_fix
Pearce Barry 2016-11-24 09:19:58 -06:00
commit 75d08e5dc2
No known key found for this signature in database
GPG Key ID: 0916F4DEA5C5DE0A
1 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@ def out_path
"#{Msf::Config::local_directory}/meterpreter_reverse_tcp.exe"
end
# Please see:
# https://github.com/rapid7/metasploit-framework/issues/7603
sleep(1)
run_single("use payload/#{PAYLOAD}")
run_single("set lhost #{payload_lhost}")
run_single("set lport #{payload_lport}")
@ -25,4 +29,4 @@ run_single("set lhost #{payload_lhost}")
run_single("set lport #{payload_lport}")
run_single('set exitonsession false')
run_single('run -j')
</ruby>
</ruby>