A simple Go tool to decrypt and extract saved passwords from Firefox browsers.
Firefox stores encrypted passwords in logins.json and the decryption key in key4.db. This tool:
- Locates your Firefox profile directory
- Extracts the master key from
key4.db - Decrypts password entries from
logins.json - Outputs usernames, passwords, and associated URLs
The decryption process uses PBKDF2 key derivation and AES/3DES decryption depending on the encryption method used by Firefox.
Build and run:
git clone https://github.com/sohimaster/Firefox-Passwords-Decryptor.git
cd Firefox-Passwords-Decryptor
go build
./Firefox-Passwords-Decryptor./Firefox-Passwords-Decryptor- Extract passwords (default)./Firefox-Passwords-Decryptor -passwords- Extract passwords./Firefox-Passwords-Decryptor -history- Extract browsing history./Firefox-Passwords-Decryptor -history -passwords- Extract both
Firefox profile path: /home/user/.mozilla/firefox/abc123.default-release
Saved passwords: [
{
"Username": "john@example.com",
"Password": "mypassword123",
"URL": "https://example.com"
}
]
- Go 1.19+
- Firefox browser with saved passwords
- Read access to Firefox profile directory
github.com/mattn/go-sqlite3- SQLite database accessgolang.org/x/crypto- Cryptographic functions
MIT License - see LICENSE file.