astrutt

0xsauby hashyfy.sh

May 25th, 2017
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.89 KB | None | 0 0
  1. #!/bin/bash
  2. #Author: 0xsauby
  3.  
  4. EXPECTED_ARGS=2
  5. if [ $# -ne $EXPECTED_ARGS ]
  6. then
  7.   echo "Usage: `basename $0` hashtype hashlist"
  8.   exit 1
  9. fi
  10.  
  11. hashtype="$1"
  12. hashlist="$2"
  13. dict="/usr/local/share/hashcat/dicts"   #Update Path
  14. hashcat="/usr/local/bin/hashcat"        #Update Path
  15. perf_settings="--gpu-temp-retain=40 -c 256 --remove -o $hashlist.cracked -w 3"
  16. rules="/usr/local/share/hashcat/rules"  #Update Path
  17. #pack="oclHashcat\masks\"               #Update Path
  18.  
  19. echo "cracked pw's will be in $hashlist.cracked"
  20. echo "simple ?a?a?a?a?a"
  21. $hashcat $perf_settings -m $hashtype -i -a 3 $hashlist ?a?a?a?a?a
  22.  
  23. echo "simple ?l?l?l?l?l?l?l?l"
  24. $hashcat $perf_settings -m $hashtype -i -a 3 $hashlist ?l?l?l?l?l?l?l?l
  25.  
  26. echo "best64 + crackstation"            #Replace rule name and dictionary name
  27. $hashcat $perf_settings -m $hashtype -a 0 --loopback -r $rules/best64.rule $hashlist $dict/crackstation-dictionary.txt
  28.  
  29. #echo "linkedin + various masks"
  30. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?a?a
  31. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?s?d?d?d
  32. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?d?d?s
  33. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?s?s?d
  34. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?d?d?d?s
  35. #$hashcat $perf_settings -m $hashtype -i -a 6 $hashlist $dict/linked.dic ?d?d?d?d
  36.  
  37. echo "crackstation + toxic v2 rules"
  38. $hashcat $perf_settings -m $hashtype -a 0 --loopback -r $rules/T0XlCv1.rule $hashlist $dict/crackstation-dictionary.txt
  39.  
  40. echo "crackstation + toxic v1 rules"
  41. $hashcat $perf_settings -m $hashtype -a 0 --loopback -r $rules/T0XlC.rule $hashlist $dict/crackstation-dictionary.txt
  42.  
  43. echo "crackstation + d3ad0ne rules"
  44. $hashcat $perf_settings -m $hashtype -a 0 --loopback -r $rules/d3ad0ne.rule $hashlist $dict/crackstation-dictionary.txt
  45. ~
Advertisement
Add Comment
Please, Sign In to add comment