Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. while [ "$count" -lt "$limit" ]
  2. do
  3. for p in $(cat $file2)
  4. do
  5.  
  6. secret=`echo $p | sha256sum | awk '{print $1}'`
  7.  
  8.  
  9. count=$((count+1))
  10.  
  11.  
  12. for h in $(cat $file)
  13. do
  14.  
  15. hash=`echo $h | awk '{print $1}' | sed 's/.*://'`
  16. username=`echo $h | awk '{print $1}' | sed 's/ *:.*//'`
  17. if [ "$secret" == "$hash" ]
  18. then
  19. echo "Username is $username"
  20. echo "Password is $p"
  21. echo "Hash is $hash"
  22. echo "---------------------"
  23. countsolved=$((countsolved+1))
  24. fi
  25. done
  26. done
  27.  
  28. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement