Created
March 29, 2012 02:38
-
-
Save dividedmind/2232681 to your computer and use it in GitHub Desktop.
Chrome password extractor from KWallet
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Quick and dirty Chrome kwallet password extractor | |
from PyKDE4.kdeui import KWallet | |
from PyQt4.QtGui import QApplication | |
from sys import argv | |
app = QApplication([]) | |
app.setApplicationName("Chrome password extractor") | |
wallet = KWallet.Wallet.openWallet(KWallet.Wallet.LocalWallet(), 0) | |
wallet.setFolder("Chrome Form Data") # check your wallet for exact folder name | |
entries = wallet.entryList() | |
entry = entries.filter(argv[1])[0] | |
entry = wallet.readEntry(entry)[1] | |
# outputs ugly slice of pickled data, hopefully you can eyeball the passsword from there | |
print(repr(str(entry[0:-1:2]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment