Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Escrito por kenkeiras
- function showuse {
- echo "$0 <diccionario> <hash>"
- exit 1
- }
- if [ "$1" = "" ]
- then
- showuse
- fi
- if [ "$2" = "" ]
- then
- showuse
- fi
- i=0
- for word in $(cat $1);do
- test=`echo -en "$word" |md5sum|cut -c1-32`
- if [ "$test" = "$2" ]
- then
- echo "-> $word"
- i=$(($i + 1))
- fi
- done
- echo "$i resultados"
Add Comment
Please, Sign In to add comment