Skip to content

Commit f6a9cfc

Browse files
committed
Break away the elsif into a separate if
In case exploits support actions for some crazy reason in the future.
1 parent b2ba6e7 commit f6a9cfc

File tree

1 file changed

+5
-2
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3140,11 +3140,14 @@ def show_options(mod) # :nodoc:
31403140
end
31413141
end
31423142

3143-
# Print the selected target or action
3143+
# Print the selected target
31443144
if (mod.exploit? and mod.target)
31453145
mod_targ = Serializer::ReadableText.dump_exploit_target(mod, ' ')
31463146
print("\nExploit target:\n\n#{mod_targ}\n") if (mod_targ and mod_targ.length > 0)
3147-
elsif mod.kind_of?(Msf::Module::HasActions)
3147+
end
3148+
3149+
# Print the selected action
3150+
if mod.kind_of?(Msf::Module::HasActions)
31483151
mod_action = Serializer::ReadableText.dump_auxiliary_action(mod, ' ')
31493152
print("\n#{mod.type.capitalize} action:\n\n#{mod_action}\n") if (mod_action and mod_action.length > 0)
31503153
end

0 commit comments

Comments
 (0)