-
-
Save haqpl/4cd951771900f855adc9368aabebf1dd to your computer and use it in GitHub Desktop.
Key4.db Mozilla Decrypt Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Key4.db Mozilla Firefox Decrypt Script | |
# | |
# Clone of JTR Decrypt Scripts by synacl modified for mozilla firefox | |
# - RAR-JTR Decrypt Script - https://synacl.wordpress.com/2012/02/10/using-john-the-ripper-to-crack-a-password-protected-rar-archive/ | |
# - ZIP-JTR Decrypt Script - https://synacl.wordpress.com/2012/08/18/decrypting-a-zip-using-john-the-ripper/ | |
# haqpl - mozilla firefox decrypt | |
echo "Key4.db Mozilla Firefox Decrypt Script"; | |
if [ $# -ne 2 ] | |
then | |
echo "Usage $0 <directory> <wordlist>"; | |
exit; | |
fi | |
7z l $1 | |
echo "Generating wordlist..." | |
john --wordlist="$2" --rules --stdout | while read i | |
do | |
echo -ne "\rTrying \"$i\" " | |
echo $i | python firefox_decrypt.py $1 | |
STATUS=$? | |
if [ $STATUS -eq 0 ]; then | |
echo -e "\rFirefox master password is: \"$i\"" | |
break | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment