Skip to content

Commit f46ec73

Browse files
committed
Fix up usage help for loot cmd
1 parent 3dca63f commit f46ec73

File tree

1 file changed

+9
-6
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+9
-6
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,12 +975,15 @@ def cmd_notes(*args)
975975
end
976976

977977
def cmd_loot_help
978-
print_line "Usage: loot [-h] [addr1 addr2 ...] [-t <type1,type2>]"
978+
print_line "Usage: loot <options>"
979+
print_line " Info: loot [-h] [addr1 addr2 ...] [-t <type1,type2>]"
980+
print_line " Add: loot -f [fname] -i [info] -a [addr1 addr2 ...] [-t [type]"
981+
print_line " Del: loot -d [addr1 addr2 ...]"
979982
print_line
980-
print_line " -a,--add Add a loot to the list of addresses, instead of listing"
981-
print_line " -d,--delete Delete *all* the loot associated with hosts, instead of searching"
982-
print_line " -f --file File with contents of the loot to add"
983-
print_line " -i --info Info of the loot to add"
983+
print_line " -a,--add Add loot to the list of addresses, instead of listing"
984+
print_line " -d,--delete Delete *all* loot matching host and type"
985+
print_line " -f,--file File with contents of the loot to add"
986+
print_line " -i,--info Info of the loot to add"
984987
print_line " -t <type1,type2> Search for a list of types"
985988
print_line " -h,--help Show this help information"
986989
print_line " -S,--search Search string to filter by"
@@ -1059,7 +1062,7 @@ def cmd_loot(*args)
10591062
return
10601063
end
10611064
if types.nil? or types.size != 1
1062-
print_error("Exactly one note type is required")
1065+
print_error("Exactly one loot type is required")
10631066
return
10641067
end
10651068
type = types.first

0 commit comments

Comments
 (0)