fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
320ebb685
master
1function __fish_hashcat_types --description"Get hashcat hash types" 2set -l modes( hashcat --example-hashes| string replace -f -r'^(?:MODE: |Hash mode #)(\d+)' '$1' ) 3set -l types( hashcat --example-hashes| string replace -f -r'^(?:TYPE:|\s+Name\.+:)\s+(.+)' '$1' ) 4for iin ( seq ( count $modes )) 5echo -e" $modes [ $i ] \t $types [ $i ] " 6end 7end 8 9function __fish_hashcat_outfile_formats --description"Get hashcat outfile formats" 10echo -e" 111\thash[:salt] 122\tplain 133\thex_plain 144\tcrack_pos 155\ttimestamp absolute 166\ttimestamp relative" 17end 18 19function __fish_hashcat_device_types --description"Get hashcat device types" 20echo -e" 211\tCPU 222\tGPU 233\tFPGA, DSP, Co-Processor" 24end 25 26complete -c hashcat -s m -l hash-type -xa"(__fish_hashcat_types)" -d Hash-type 27complete -c hashcat -s a -l attack-mode -d Attack-mode -xa" 280\t'Straight' 291\t'Combination' 303\t'Brute-force' 316\t'Hybrid Wordlist + Mask' 327\t'Hybrid Mask + Wordlist' 339\t'Association'" 34complete -c hashcat -s V -l version -d"Print version" 35complete -c hashcat -s h -l help -d"Print help" 36complete -c hashcat -l quiet -d"Suppress output" 37complete -c hashcat -l hex-charset -d"Assume charset is given in hex" 38complete -c hashcat -l hex-salt -d"Assume salt is given in hex" 39complete -c hashcat -l hex-wordlist -d"Assume words in wordlist are given in hex" 40complete -c hashcat -l force -d"Ignore warnings" 41complete -c hashcat -l deprecated-check-disable -d"Enable deprecated plugins" 42complete -c hashcat -l status -d"Enable automatic update of the status screen" 43complete -c hashcat -l status-json -d"Enable JSON format for status output" 44complete -c hashcat -l status-timer -x -d"Sets seconds between status screen updates" 45complete -c hashcat -l stdin-timeout-abort -x -d"Abort if there is no input from stdin for X seconds" 46complete -c hashcat -l machine-readable -d"Display the status view in a machine-readable format" 47complete -c hashcat -l keep-guessing -d"Keep guessing the hash after it has been cracked" 48complete -c hashcat -l self-test-disable -d"Disable self-test functionality on startup" 49complete -c hashcat -l loopback -d"Add new plains to induct directory" 50complete -c hashcat -l markov-hcstat2 -rF -d"Specify hcstat2 file to use" 51complete -c hashcat -l markov-disable -d"Disables markov-chains, emulates classic brute-force" 52complete -c hashcat -l markov-classic -d"Enables classic markov-chains, no per-position" 53complete -c hashcat -l markov-inverse -d"Enables inverse markov-chains, no per-position" 54complete -c hashcat -s t -l markov-threshold -x -d"Threshold when to stop accepting new markov-chains" 55complete -c hashcat -l runtime -x -d"Abort session after X seconds of runtime" 56complete -c hashcat -l session -x -d"Define specific session name" 57complete -c hashcat -l restore -d"Restore session from --session" 58complete -c hashcat -l restore-disable -d"Do not write restore file" 59complete -c hashcat -l restore-file-path -rF -d"Specific path to restore file" 60complete -c hashcat -s o -l outfile -rF -d"Define outfile for recovered hash" 61complete -c hashcat -l outfile-format -xa"(__fish_stripprefix='^--outfile-format=' __fish_complete_list , __fish_hashcat_outfile_formats)" -d"Outfile formats to use" 62complete -c hashcat -l outfile-autohex-disable -d"Disable the use of \$HEX[] in output plains" 63complete -c hashcat -l outfile-check-timer -x -d"Sets seconds between outfile checks" 64complete -c hashcat -l wordlist-autohex-disable -d"Disable the conversion of \$HEX[] from the wordlist" 65complete -c hashcat -s p -l separator -x -d"Separator char for hashlists and outfile" 66complete -c hashcat -l stdout -d"Do not crack a hash, instead print candidates only" 67complete -c hashcat -l show -d"Compare hashlist with potfile; show cracked hashes" 68complete -c hashcat -l left -d"Compare hashlist with potfile; show uncracked hashes" 69complete -c hashcat -l username -d"Enable ignoring of usernames in hashfile" 70complete -c hashcat -l remove -d"Enable removal of hashes once they are cracked" 71complete -c hashcat -l remove-timer -x -d"Update input hash file each X seconds" 72complete -c hashcat -l potfile-disable -d"Do not write potfile" 73complete -c hashcat -l potfile-path -rF -d"Specific path to potfile" 74complete -c hashcat -l encoding-from -x -d"Force internal wordlist encoding from X" 75complete -c hashcat -l encoding-to -x -d"Force internal wordlist encoding to X" 76complete -c hashcat -l debug-mode -d"Defines the debug mode" -xa" 771\t'Finding-Rule' 782\t'Original-Word' 793\t'Original-Word:Finding-Rule' 804\t'Original-Word:Finding-Rule:Processed-Word'" 81complete -c hashcat -l debug-file -rF -d"Output file for debugging rules" 82complete -c hashcat -l induction-dir -xa"(__fish_complete_directories)" -d"Specify the induction directory to use for loopback" 83complete -c hashcat -l outfile-check-dir -xa"(__fish_complete_directories)" -d"Specify the outfile directory to monitor for plains" 84complete -c hashcat -l logfile-disable -d"Disable the logfile" 85complete -c hashcat -l hccapx-message-pair -x -d"Load only message pairs from hccapx matching X" 86complete -c hashcat -l nonce-error-corrections -x -d"The BF size range to replace AP's nonce last bytes" 87complete -c hashcat -l keyboard-layout-mapping -rF -d"Keyboard layout mapping table for special hash-modes" 88complete -c hashcat -l truecrypt-keyfiles -rF -d"Keyfiles to use" 89complete -c hashcat -l veracrypt-keyfiles -rF -d"Keyfiles to use" 90complete -c hashcat -l veracrypt-pim-start -x -d"VeraCrypt personal iterations multiplier start" 91complete -c hashcat -l veracrypt-pim-stop -x -d"VeraCrypt personal iterations multiplier stop" 92complete -c hashcat -s b -l benchmark -d"Run benchmark of selected hash-modes" 93complete -c hashcat -l benchmark-all -d"Run benchmark of all hash-modes (requires -b)" 94complete -c hashcat -l speed-only -d"Return expected speed of the attack, then quit" 95complete -c hashcat -l progress-only -d"Return ideal progress step size and time to process" 96complete -c hashcat -s c -l segment-size -x -d"Sets size in MB to cache from the wordfile" 97complete -c hashcat -l bitmap-min -x -d"Sets minimum bits allowed for bitmaps" 98complete -c hashcat -l bitmap-max -x -d"Sets maximum bits allowed for bitmaps" 99complete -c hashcat -l cpu-affinity -x -d"Locks to CPU devices" 100complete -c hashcat -l hook-threads -x -d"Sets number of threads for a hook (per compute unit)" 101complete -c hashcat -l hash-info -d"Show information for each hash-mode" 102complete -c hashcat -l example-hashes -d"Alias of --hash-info" 103complete -c hashcat -l backend-ignore-cuda -d"Do not try to open CUDA interface on startup" 104complete -c hashcat -l backend-ignore-hip -d"Do not try to open HIP interface on startup" 105complete -c hashcat -l backend-ignore-metal -d"Do not try to open Metal interface on startup" 106complete -c hashcat -l backend-ignore-opencl -d"Do not try to open OpenCL interface on startup" 107complete -c hashcat -s I -l backend-info -d"Show info about detected backend API devices" 108complete -c hashcat -s d -l backend-devices -x -d"Backend devices to use" 109complete -c hashcat -s D -l opencl-device-types -xa"(__fish_stripprefix='^(--opencl-device-types=|-\w*D)' __fish_complete_list , __fish_hashcat_device_types)" -d"OpenCL device-types to use" 110complete -c hashcat -s O -l optimized-kernel-enable -d"Enable optimized kernels (limits password length)" 111complete -c hashcat -s M -l multiply-accel-disable -d"Disable multiply kernel-accel with processor count" 112complete -c hashcat -s w -l workload-profile -d"Enable a specific workload profile" -xa" 1131\tLow 1142\tDefault 1153\tHigh 1164\tNightmare" 117complete -c hashcat -s n -l kernel-accel -x -d"Manual workload tuning, set outerloop step size" 118complete -c hashcat -s u -l kernel-loops -x -d"Manual workload tuning, set innerloop step size" 119complete -c hashcat -s T -l kernel-threads -x -d"Manual workload tuning, set thread count" 120complete -c hashcat -l backend-vector-width -x -d"Manually override backend vector-width" 121complete -c hashcat -l spin-damp -x -d"Use CPU for device synchronization, in percent" 122complete -c hashcat -l hwmon-disable -d"Disable temperature and fanspeed reads and triggers" 123complete -c hashcat -l hwmon-temp-abort -x -d"Abort if temperature reaches X degrees Celsius" 124complete -c hashcat -l scrypt-tmto -x -d"Manually override TMTO value for scrypt to X" 125complete -c hashcat -s s -l skip -x -d"Skip X words from the start" 126complete -c hashcat -s l -l limit -x -d"Limit X words from the start + skipped words" 127complete -c hashcat -l keyspace -d"Show keyspace base:mod values and quit" 128complete -c hashcat -s j -l rule-left -x -d"Single rule applied to each word from left wordlist" 129complete -c hashcat -s k -l rule-right -x -d"Single rule applied to each word from right wordlist" 130complete -c hashcat -s r -l rules-file -rF -d"Multiple rules applied to each word from wordlists" 131complete -c hashcat -s g -l generate-rules -x -d"Generate X random rules" 132complete -c hashcat -l generate-rules-func-min -x -d"Force min X functions per rule" 133complete -c hashcat -l generate-rules-func-max -x -d"Force max X functions per rule" 134complete -c hashcat -l generate-rules-func-sel -x -d"Pool of rule operators valid for random rule engine" 135complete -c hashcat -l generate-rules-seed -x -d"Force RNG seed set to X" 136complete -c hashcat -s1 -l custom-charset1 -x -d"User-defined charset ?1" 137complete -c hashcat -s2 -l custom-charset2 -x -d"User-defined charset ?2" 138complete -c hashcat -s3 -l custom-charset3 -x -d"User-defined charset ?3" 139complete -c hashcat -s4 -l custom-charset4 -x -d"User-defined charset ?4" 140complete -c hashcat -s i -l identify -d"Shows all supported algorithms for input hashes" 141complete -c hashcat -s i -l increment -d"Enable mask increment mode" 142complete -c hashcat -l increment-min -x -d"Start mask incrementing at X" 143complete -c hashcat -l increment-max -x -d"Stop mask incrementing at X" 144complete -c hashcat -s S -l slow-candidates -d"Enable slower (but advanced) candidate generators" 145complete -c hashcat -l brain-server -d"Enable brain server" 146complete -c hashcat -l brain-server-timer -x -d"Update the brain server dump each X seconds (min:60)" 147complete -c hashcat -s z -l brain-client -d"Enable brain client, activates -S" 148complete -c hashcat -l brain-client-features -d"Define brain client features" -xa" 1491\t'Send hashed passwords' 1502\t'Send attack positions' 1513\t'Send hashed passwords and attack positions'" 152complete -c hashcat -l brain-host -xa"(__fish_print_hostnames)" -d"Brain server host (IP or domain)" 153complete -c hashcat -l brain-port -x -d"Brain server port" 154complete -c hashcat -l brain-password -x -d"Brain server authentication password" 155complete -c hashcat -l brain-session -x -d"Overrides automatically calculated brain session" 156complete -c hashcat -l brain-session-whitelist -x -d"Allow given sessions only"