Firefox-Decrypt modified for dictionary attack on master password
This script is the modification of this excellent project, a tool to extract passwords from Mozilla (Firefox™, Waterfox™, Thunderbird®, SeaMonkey®) profiles, to make it support dictionary attack. This is published as a Gist as the related PR was refused (for a reason I completely understand) and with the consent of the author.
For the main options, please refer to the original project. You can provide a wordlist of master passwords for a dictionary attack as follows:
$ python firefox_decrypt_modified.py -w passwords.lst l1u1xh65.default
Simple arguments lexer for parsing a line of arguments and keyword-arguments.
ValueLexer evaluates strings (delimited by single or double quotes), booleans, floats, integers and also binary, octal or hexadecimal (to an integer).
ArgumentsLexer ensures that the input line of arguments has the form:
arg1 arg2 ... argN kw1=val1 kw2=val2 ... kwM=valM
This can be installed using:
$ pip install tinyscript $ wget https://gist.githubusercontent.com/dhondta/1858f406fc55e5e5d440ff26432ad0a4/raw/solitaire-cipher.py && chmod +x solitaire-cipher.py && sudo mv solitaire-cipher.py /usr/bin/solitaire-cipher
This tool is especially useful in the use cases hereafter.