We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fb8928 + cfeb0b7 commit 92c5b27Copy full SHA for 92c5b27
modules/exploits/multi/handler.rb
@@ -34,15 +34,14 @@ def initialize(info = {})
34
'Arch' => ARCH_ALL,
35
'Targets' => [ [ 'Wildcard Target', {} ] ],
36
'DefaultTarget' => 0,
37
- 'Stance' => Msf::Exploit::Stance::Passive
38
)
39
40
41
register_advanced_options(
42
[
43
OptBool.new(
44
"ExitOnSession",
45
- [ true, "Return from the exploit after a session has been created", false ]
+ [ true, "Return from the exploit after a session has been created", true ]
46
),
47
OptInt.new(
48
"ListenerTimeout",
@@ -58,7 +57,7 @@ def exploit
58
57
loop do
59
break if session_created? && datastore['ExitOnSession']
60
break if timeout > 0 && (stime + timeout < Time.now.to_f)
61
- sleep(1)
+ Rex::ThreadSafe.sleep(1)
62
end
63
64
0 commit comments