Skip to content

Commit a197997

Browse files
committed
avoid chinese finger trap logic, put it all on one side
1 parent 177e132 commit a197997

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/msf/ui/console/command_dispatcher/auxiliary.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ def cmd_run(*args)
9696
}
9797

9898
# Always run passive modules in the background
99-
if (mod.passive || mod.passive_action?(action || mod.default_action))
99+
if mod.is_a?(Msf::Module::HasActions) &&
100+
(mod.passive || mod.passive_action?(action || mod.default_action))
100101
jobify = true
101-
end if mod.is_a?(Msf::Module::HasActions)
102+
end
102103

103104
begin
104105
mod.run_simple(

0 commit comments

Comments
 (0)