Guest User

Kenkeiras - MD5Cracker

a guest
Jul 28th, 2010
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # Escrito por kenkeiras
  3. function showuse {
  4.     echo "$0 <diccionario> <hash>"
  5.     exit 1  
  6. }
  7.  
  8. if [ "$1" = "" ]
  9. then
  10.     showuse
  11. fi
  12.  
  13. if [ "$2" = "" ]
  14. then
  15.     showuse
  16. fi
  17.  
  18. i=0
  19. for word in $(cat $1);do
  20.     test=`echo -en "$word" |md5sum|cut -c1-32`
  21.     if [ "$test" = "$2" ]
  22.         then
  23.             echo "-> $word"
  24.             i=$(($i + 1))
  25.         fi
  26. done
  27. echo "$i resultados"
Add Comment
Please, Sign In to add comment