SHARE
TWEET

10.10.10.168 / Obscurity

a guest Dec 2nd, 2019 170 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top