ZSH: Completion: Hashcat: fix broken mode selection
Hashcat has changed the way it displays modes. Update the completion script to reflect this.
This commit is contained in:
parent
d92ac70946
commit
b086532297
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ _hashes(){
|
|||
if $(type fzf > /dev/null); then
|
||||
# If fzf if available, use it for hash completion
|
||||
|
||||
hashcat --example-hashes | awk -v RS="\n\n" -F "\t" '{gsub("\n","\t",$0); print $1 "\t" $2 "\t" $3}' | sed 's/MODE: //; s/TYPE: //' | fzf -d "\t" --header="Mode Type" --with-nth='1,2' --preview='echo {3}' --preview-window=up:1 | cut -d' ' -f1
|
||||
hashcat --example-hashes | grep -E '(mode|Example\.Hash\.\.|Name|^$)' | awk -F ': ' '{print $NF}' | sed 's/Hash mode #//' | awk -v RS="\n\n" -F="\t" '{gsub("\n","\t",$0);print $0}' | fzf -d "\t" --header="Mode Type" --with-nth='1,2' --preview='echo {3}' --preview-window=up:1 --height=40% | cut -d' ' -f1
|
||||
else
|
||||
hashcat --example-hashes | awk -v RS="\n\n" -F "\t" '{gsub("\n","\t",$0); print $1 ":" $2 }' | sed 's/MODE: //; s/TYPE: //'
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue