diff --git a/lib/msf/ui/console/command_dispatcher/modules.rb b/lib/msf/ui/console/command_dispatcher/modules.rb index c4fb3ed08033..82d1dc4fbd9d 100644 --- a/lib/msf/ui/console/command_dispatcher/modules.rb +++ b/lib/msf/ui/console/command_dispatcher/modules.rb @@ -473,6 +473,13 @@ def cmd_search(*args) else print_line(tbl.to_s) print_status("Using #{used_module}") if used_module + + if @module_search_results.length > 1 + index_usage = "use #{@module_search_results.length - 1}" + name_usage = "use #{@module_search_results.last.fullname}" + + print("Interact with a module by name or index, for example %grn#{index_usage}%clr or %grn#{name_usage}%clr\n\n") + end end true