Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/bash
- # 10.10.10.168 / Obscurity
- # hackthebox
- #
- file2=`md5sum check.txt | awk '{ print $1 }'`
- for i in `cat passlist`; do
- python3 crypt.py -i out.txt -o e.txt -k $i -d
- echo "Cracking the key..."
- file1=`md5sum e.txt | awk '{ print $1 }'`
- if [ "$file1" = "$file2" ]
- then
- echo "[+] md5sum matched."
- echo "The key is: " $i
- exit 0
- else
- continue
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement