From f2cbcedf4d2254248eafbfe4960a69467479a38d Mon Sep 17 00:00:00 2001 From: HD Moore Date: Thu, 14 Sep 2006 06:22:24 +0000 Subject: [PATCH] Break the loop when a session is created git-svn-id: file:///home/svn/framework3/trunk@3890 4d416f70-5f16-0410-b530-b9f4589650da --- modules/exploits/multi/handler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/exploits/multi/handler.rb b/modules/exploits/multi/handler.rb index 9840f84c99..7c5d9a6410 100644 --- a/modules/exploits/multi/handler.rb +++ b/modules/exploits/multi/handler.rb @@ -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