Skip to content

Commit 92c5b27

Browse files
committed
Land rapid7#9178, multi/handler enhancements rollback
2 parents 6fb8928 + cfeb0b7 commit 92c5b27

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/exploits/multi/handler.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ def initialize(info = {})
3434
'Arch' => ARCH_ALL,
3535
'Targets' => [ [ 'Wildcard Target', {} ] ],
3636
'DefaultTarget' => 0,
37-
'Stance' => Msf::Exploit::Stance::Passive
3837
)
3938
)
4039

4140
register_advanced_options(
4241
[
4342
OptBool.new(
4443
"ExitOnSession",
45-
[ true, "Return from the exploit after a session has been created", false ]
44+
[ true, "Return from the exploit after a session has been created", true ]
4645
),
4746
OptInt.new(
4847
"ListenerTimeout",
@@ -58,7 +57,7 @@ def exploit
5857
loop do
5958
break if session_created? && datastore['ExitOnSession']
6059
break if timeout > 0 && (stime + timeout < Time.now.to_f)
61-
sleep(1)
60+
Rex::ThreadSafe.sleep(1)
6261
end
6362
end
6463
end

0 commit comments

Comments
 (0)