master
Jonathan Hodgson 5 years ago
parent 433b39942b
commit cce72a2527
  1. 2
      shells/zsh/oh-my-zsh-custom/fzf.zsh

@ -146,7 +146,7 @@ jhswap(){
return return
fi fi
cmd=${tokens[1]} cmd=${tokens[1]}
if [[ "$cmd" == "hydra" && "${tokens[-1]}" == "-m" ]]; then if [[ "$cmd" == "hashcat" && "${tokens[-1]}" == "-m" ]]; then
mode=$(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) mode=$(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)
if [[ "${LBUFFER[-1]}" != " " ]]; then if [[ "${LBUFFER[-1]}" != " " ]]; then
LBUFFER="${LBUFFER} " LBUFFER="${LBUFFER} "

Loading…
Cancel
Save