Note: Due to the potential for misuse, I can not share this source code publicly on GitHub or LinkedIn.
A Python tool that extracts and optionally deletes saved passwords from popular browsers like Google Chrome, Microsoft Edge, and Mozilla Firefox. This tool is designed for penetration testers, security enthusiasts, and anyone interested in understanding browser security mechanisms.
- Features
- Requirements
- Installation # I don't add this part
- Usage # I don't add this part
- Disclaimer
- Extract saved passwords from Google Chrome, Edge, and Firefox.
- Decrypt stored passwords using Chrome's and Edge's internal encryption.
- Optionally delete all saved passwords for a clean slate.
- Auto-install dependencies on the first run for easy setup.
- Python 3.6+ installed.
- Compatible with Windows OS.
- Google Chrome, Microsoft Edge, or Mozilla Firefox installed.
-
Extract and View Passwords:
The passwords will be saved to achrome_data.txt
file. -
Delete All Passwords (Optional):
Follow the on-screen instructions to delete passwords after extraction.
Below is a breakdown of the key parts of the code:
def main():
# Decrypt stored passwords
key = get_encryption_key()
...
password = decrypt_password(row[3], key)
...
def delete_passwords():
# Deleting saved passwords from browsers
db_path = os.path.join(os.environ["USERPROFILE"], "AppData", "Local",
"Google", "Chrome", "User Data", "default", "Login Data")
...
This tool is intended for educational purposes only. Unauthorized access to someone else’s data is illegal and unethical. Always obtain permission before attempting to access or manipulate any data that isn't your own.
- Ethical Use: This script should be used responsibly and ethically. Ensure you have permission to access the password data and do not use this script for malicious purposes.
- Data Loss Warning: Deleting passwords is irreversible. Use caution when using the delete feature.