File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3140,11 +3140,14 @@ def show_options(mod) # :nodoc:
3140
3140
end
3141
3141
end
3142
3142
3143
- # Print the selected target or action
3143
+ # Print the selected target
3144
3144
if ( mod . exploit? and mod . target )
3145
3145
mod_targ = Serializer ::ReadableText . dump_exploit_target ( mod , ' ' )
3146
3146
print ( "\n Exploit 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 )
3148
3151
mod_action = Serializer ::ReadableText . dump_auxiliary_action ( mod , ' ' )
3149
3152
print ( "\n #{ mod . type . capitalize } action:\n \n #{ mod_action } \n " ) if ( mod_action and mod_action . length > 0 )
3150
3153
end
You can’t perform that action at this time.
0 commit comments