Advertisement
Guest User

10.10.10.168 / Obscurity

a guest
Dec 2nd, 2019
1,743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/usr/bin/bash
  2. # 10.10.10.168 / Obscurity
  3. # hackthebox
  4. #
  5. file2=`md5sum check.txt | awk '{ print $1 }'`
  6. for i in `cat passlist`; do
  7. python3 crypt.py -i out.txt -o e.txt -k $i -d
  8. echo "Cracking the key..."
  9. file1=`md5sum e.txt | awk '{ print $1 }'`
  10. if [ "$file1" = "$file2" ]
  11. then
  12.     echo "[+] md5sum matched."
  13.     echo "The key is: " $i
  14.     exit 0
  15. else
  16.     continue
  17. fi
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement