Wait a little longer for a session (5 seconds)
git-svn-id: file:///home/svn/framework3/trunk@13208 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
f683a2d26f
commit
764bb36f44
|
@ -168,9 +168,15 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
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...")
|
||||
handler
|
||||
|
||||
cnt = 1
|
||||
while session_created? == false and cnt < 25
|
||||
::IO.select(nil, nil, nil, 0.25)
|
||||
cnt += 1
|
||||
end
|
||||
|
||||
disconnect
|
||||
|
||||
rescue ::Rex::Proto::SMB::Exceptions::ErrorCode, Rex::ConnectionError
|
||||
|
@ -437,3 +443,4 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue