Break the loop when a session is created

git-svn-id: file:///home/svn/framework3/trunk@3890 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-09-14 06:22:24 +00:00
parent 4c37fe428d
commit f2cbcedf4d
1 changed files with 2 additions and 1 deletions

View File

@ -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