remove wait when DisablePayloadHandler was set
git-svn-id: file:///home/svn/framework3/trunk@11324 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
0d6b2c8229
commit
f45e03cd14
|
@ -222,7 +222,10 @@ protected
|
||||||
|
|
||||||
# Wait the payload to acquire a session if this isn't a passive-style
|
# Wait the payload to acquire a session if this isn't a passive-style
|
||||||
# exploit.
|
# exploit.
|
||||||
if (exploit.passive? == false or force_wait_for_session == true)
|
return if not
|
||||||
|
|
||||||
|
if (force_wait_for_session == true) or
|
||||||
|
(exploit.passive? == false and exploit.handler_enabled?)
|
||||||
begin
|
begin
|
||||||
self.session = payload.wait_for_session(delay)
|
self.session = payload.wait_for_session(delay)
|
||||||
rescue ::Interrupt
|
rescue ::Interrupt
|
||||||
|
|
Loading…
Reference in New Issue