Skip to content

Commit

Permalink
Land #13795, helpful "use" tip when running search
Browse files Browse the repository at this point in the history
  • Loading branch information
wvu committed Jul 1, 2020
2 parents 01899d4 + 8186270 commit f5e50eb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/msf/ui/console/command_dispatcher/modules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5e50eb

Please sign in to comment.