Break the loop when a session is created
git-svn-id: file:///home/svn/framework3/trunk@3890 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4c37fe428d
commit
f2cbcedf4d
|
@ -35,7 +35,8 @@ class Exploits::Multi::Handler < Msf::Exploit::Remote
|
|||
def exploit
|
||||
print_status "Starting the payload handler..."
|
||||
while(true)
|
||||
sleep(30)
|
||||
sleep(1)
|
||||
break if session_created?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue