fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d716b32be
master
1function __fish_john_encodings 2john --list=encodings2> /dev/null| string match -a -r'[A-Z][A-Za-z0-9-]*' 3end 4 5function __fish_john_rules 6john --list=rules2> /dev/null 7end 8 9function __fish_john_formats 10john --list=format-details2> /dev/null| string match -v -r'^dynamic_' | cut -f 1,8 11john --list=subformats2> /dev/null| string replace -fr'.*type = (dynamic_\d+): (.*)' '$1\t$2' 12end 13 14complete -c john -l help -d"print usage summary" 15complete -c john -l single -fa"(__fish_stripprefix='^--single=' __fish_complete_list , __fish_john_rules)" -d"single crack mode" 16complete -c john -l single-seed -rf -d"add static seed word(s) for all salts in single mode" 17complete -c john -l single-wordlist -rF -d"short wordlist with static seed words/morphemes" 18complete -c john -l single-user-seed -rF -d"wordlist with seeds per username" 19complete -c john -l single-pair-max -rf -d"max. number of word pairs generated" 20complete -c john -l no-single-pair -d"disable single word pair generation" 21complete -c john -l single-retest-guess -d"enable SingleRetestGuess" 22complete -c john -l no-single-retest-guess -d"disable SingleRetestGuess" 23complete -c john -l wordlist -F -d"read wordlist from file" 24complete -c john -l stdin -d"read wordlist from stdin" 25complete -c john -l pipe -d"read wordlist from stdin but with bulk reads and allows rules" 26complete -c john -l rules -fa"(__fish_stripprefix='^--rules=' __fish_complete_list , __fish_john_rules)" -d"enable word mangling rules" 27complete -c john -l rules-stack -fa"(__fish_stripprefix='^--rules-stack=' __fish_complete_list , __fish_john_rules)" -d"stacked rules" 28complete -c john -l rules-skip-nop -d"skip any NOP rules" 29complete -c john -l loopback -F -d"parse a .pot file as a wordlist" 30complete -c john -l mem-file-size -rf -d"size threshold for wordlist preload" 31complete -c john -l dupe-suppression -d"opportunistic dupe suppression for wordlist+rules" 32complete -c john -l incremental -fa"(john --list=inc-modes 2>/dev/null)" -d"incremental mode" 33complete -c john -l incremental-charcount -rf -d"override CharCount for incremental mode" 34complete -c john -l external -xa"(john --list=externals 2>/dev/null)" -d"external mode or word filter" 35complete -c john -l mask -f -d"mask mode" 36complete -c john -l markov -f -d"Markov mode" 37complete -c john -l mkv-stats -rF -d"Markov stats file" 38complete -c john -l prince -F -d"PRINCE mode, read words from file" 39complete -c john -l prince-loopback -F -d"PRINCE mode, fetch words from a .pot file" 40complete -c john -l prince-elem-cnt-min -rf -d"minimum number of elements per chain" 41complete -c john -l prince-elem-cnt-max -rf -d"maximum number of elements per chain" 42complete -c john -l prince-skip -rf -d"initial skip" 43complete -c john -l prince-limit -rf -d"limit number of candidates generated" 44complete -c john -l prince-wl-dist-len -d"calculate length distribution from wordlist" 45complete -c john -l prince-wl-max -rf -d"load only N words from input wordlist" 46complete -c john -l prince-case-permute -d"permute case of first letter" 47complete -c john -l prince-keyspace -d"just show total keyspace that would be produced" 48complete -c john -l subsets -f -d"subsets mode" 49complete -c john -l subsets-required -rf -d"the N first characters of subsets charset are the required set" 50complete -c john -l subsets-min-diff -rf -d"minimum unique characters in subset" 51complete -c john -l subsets-max-diff -rf -d"maximum unique characters in subset" 52complete -c john -l subsets-prefer-short -d"prefer shorter candidates over smaller subsets" 53complete -c john -l subsets-prefer-small -d"prefer smaller subsets over shorter candidates" 54complete -c john -l make-charset -rF -d"make a charset file" 55complete -c john -l stdout -f -d"just output candidate passwords" 56complete -c john -l session -rf -d"give a new session a name" 57complete -c john -l status -f -d"print status of a session" 58complete -c john -l restore -f -d"restore an interrupted session" 59complete -c john -l crack-status -d"emit a status line whenever a password is cracked" 60complete -c john -l no-crack-status -d"don't emit a status line whenever a password is cracked" 61complete -c john -l progress-every -rf -d"emit a status line every N seconds" 62complete -c john -l show -d"show cracked passwords" -fa" 63left\t'show uncracked passwords' 64formats\t'show information about hashes in a file' 65invalid\t'show lines that are not valid for selected format(s)'" 66complete -c john -l test -f -d"run tests and benchmarks for TIME seconds each" 67complete -c john -l stress-test -f -d"loop self tests forever" 68complete -c john -l test-full -rf -d"run more thorough self-tests" 69complete -c john -l no-mask -d"used with --test for alternate benchmark w/o mask" 70complete -c john -l skip-self-tests -d"skip self tests" 71complete -c john -l users -rf -d"load or don't load these users only" 72complete -c john -l groups -rf -d"load users in or not in these groups only" 73complete -c john -l shells -rf -d"load users with or without these shells only" 74complete -c john -l salts -rf -d"load certain salts" 75complete -c john -l costs -rf -d"load salts with or without specific cost values" 76complete -c john -l fork -rf -d"fork N processes" 77complete -c john -l node -rf -d"this node's number range out of TOTAL count" 78complete -c john -l save-memory -xa"1 2 3" -d"enable memory saving at level" 79complete -c john -l log-stderr -d"log to screen instead of file" 80complete -c john -l verbosity -xa"1 2 3 4 5 6" -d"change verbosity" 81complete -c john -l no-log -d"disables creation and writing to john.log file" 82complete -c john -l bare-always-valid -xa"Y N" -d"treat bare hashes as valid" 83complete -c john -l catch-up -rf -d"catch up with existing (paused) session NAME" 84complete -c john -l config -rF -d"use custom file instead of john.conf or john.ini" 85complete -c john -l encoding -l input-encoding -xa"(__fish_john_encodings)" -d"input encoding" 86complete -c john -l internal-codepage -xa"(__fish_john_encodings)" -d"codepage used in rules/masks" 87complete -c john -l target-encoding -xa"(__fish_john_encodings)" -d"output encoding" 88complete -c john -l force-tty -d"set up terminal for reading keystrokes" 89complete -c john -l field-separator-char -rf -d"use custom character instead of ':' in input and pot files" 90complete -c john -l keep-guessing -d"try finding plaintext collisions" 91complete -c john -l no-keep-guessing -d"don't try finding plaintext collisions" 92complete -c john -l list -fa"help subformats inc-modes rules externals ext-modes ext-hybrids ext-filters ext-filters-only build-info encodings formats format-classes format-details format-all-details format-methods format-tests sections parameters: list-data:" -d"list capabilities" 93complete -c john -l length -rf -d"shortcut for --min-len=N --max-len=N" 94complete -c john -l min-length -rf -d"request a minimum candidate length in bytes" 95complete -c john -l max-length -rf -d"request a maximum candidate length in bytes" 96complete -c john -l max-candidates -rf -d"gracefully exit after this many candidates tried" 97complete -c john -l max-run-time -rf -d"gracefully exit after this many seconds" 98complete -c john -l mkpc -rf -d"request a lower max. keys per crypt" 99complete -c john -l no-loader-dupecheck -d"disable the dupe checking when loading hashes" 100complete -c john -l pot -rF -d"pot file to use" 101complete -c john -l regen-lost-salts -rf -d"brute force unknown salts" 102complete -c john -l reject-printable -d"reject printable binaries" 103complete -c john -l tune -fa"auto report N" -d"tuning options" 104complete -c john -l subformat -fa"md5crypt bcrypt sha256crypt sha512crypt" -d"pick a benchmark format for --format=crypt" 105complete -c john -l format -fa"(__fish_stripprefix='^--format=' __fish_complete_list , __fish_john_formats)" -d"force hash type"