Skip to content

Commit 6734e53

Browse files
committed
Land rapid7#9562, avoid an error with aux module command dispatcher
2 parents 25d2b55 + a197997 commit 6734e53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ 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
101102
end
102103

0 commit comments

Comments
 (0)