Wait a little longer for a session (5 seconds)

git-svn-id: file:///home/svn/framework3/trunk@13208 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-07-18 16:05:51 +00:00
parent f683a2d26f
commit 764bb36f44
1 changed files with 8 additions and 1 deletions

View File

@ -168,9 +168,15 @@ class Metasploit3 < Msf::Exploit::Remote
break if session_created? break if session_created?
} }
#print_status("Everything should be set, waiting up to two minutes for a session...")
print_status("Everything should be set, waiting for a session...") print_status("Everything should be set, waiting for a session...")
handler handler
cnt = 1
while session_created? == false and cnt < 25
::IO.select(nil, nil, nil, 0.25)
cnt += 1
end
disconnect disconnect
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode, Rex::ConnectionError rescue ::Rex::Proto::SMB::Exceptions::ErrorCode, Rex::ConnectionError
@ -437,3 +443,4 @@ class Metasploit3 < Msf::Exploit::Remote
end end
end end