Skip to content

Commit 75d08e5

Browse files
committed
Land rapid7#7612, Race condition when loading auto_win32_multihandler.rc
Fixes rapid7#7603
2 parents 0646b5c + f082fd5 commit 75d08e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/resource/auto_win32_multihandler.rc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ def out_path
1313
"#{Msf::Config::local_directory}/meterpreter_reverse_tcp.exe"
1414
end
1515

16+
# Please see:
17+
# https://github.com/rapid7/metasploit-framework/issues/7603
18+
sleep(1)
19+
1620
run_single("use payload/#{PAYLOAD}")
1721
run_single("set lhost #{payload_lhost}")
1822
run_single("set lport #{payload_lport}")
@@ -25,4 +29,4 @@ run_single("set lhost #{payload_lhost}")
2529
run_single("set lport #{payload_lport}")
2630
run_single('set exitonsession false')
2731
run_single('run -j')
28-
</ruby>
32+
</ruby>

0 commit comments

Comments
 (0)