Skip to content

Commit a35e737

Browse files
committed
Add simple tabbing for creds command
1 parent b8bb4c7 commit a35e737

File tree

1 file changed

+17
-0
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,23 @@ def cmd_creds(*args)
919919

920920
end
921921

922+
def cmd_creds_tabs(str, words)
923+
case words.length
924+
when 1
925+
# subcommands
926+
tabs = [ 'add-ntlm', 'add-password', 'add-hash', 'add-ssh-key', ]
927+
when 2
928+
tabs = if words[1] == 'add-ssh-key'
929+
tab_complete_filenames(str, words)
930+
else
931+
[]
932+
end
933+
else
934+
tabs = []
935+
end
936+
return tabs
937+
end
938+
922939
def cmd_notes_help
923940
print_line "Usage: notes [-h] [-t <type1,type2>] [-n <data string>] [-a] [addr range]"
924941
print_line

0 commit comments

Comments
 (0)