Last active
December 14, 2017 14:57
-
-
Save betesh/408582efed012c8b79a379c6cf075525 to your computer and use it in GitHub Desktop.
Export all your passwords from Google Chrome
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
/* Adapted from https://cmatskas.com/export-your-stored-passwords-from-chrome/ | |
* 1. Go to chrome://settings-frame/passwords | |
* 2. Paste the following into the JS console: | |
*/ | |
var decryptedRow=""; | |
var pm = PasswordManager.getInstance(); | |
var model = pm.savedPasswordsList_.dataModel; | |
var pl = pm.savedPasswordsList_; | |
for(i=0;i<model.length;i++){ | |
PasswordManager.requestShowPassword(i); | |
}; | |
decryptEach = function(){ | |
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"'; | |
for(i=0; i<model.length; i++){ | |
var item = pl.getListItemByIndex(i); | |
decryptedRow += '<br/>"http://'+model.array_[i].shownOrigin+'","'+model.array_[i].username+'","'; | |
decryptedRow += item.childNodes[0].childNodes[2].childNodes[0].value+'","http://'+model.array_[i].url+'"," "," "," "'; | |
}; | |
document.write(decryptedRow); | |
} | |
setTimeout(decryptEach, 300); | |
/* | |
* 3. The content of the page will be replaced by a list of passwords, in CSV format. | |
* Copy and paste to a file and save it as a CSV. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Chrome 61/62: https://gist.github.com/betesh/54d3fd27fd979e78d3b23badbb90afc2