-
-
Save ceap80/ed63b89977ee534b453134076339cfd9 to your computer and use it in GitHub Desktop.
ExportChromePasswords.js
This file contains hidden or 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
| var pm = PasswordManager.getInstance(); | |
| var pl = pm.savedPasswordsList_; | |
| var model = pm.savedPasswordsList_.dataModel; | |
| setTimeout(function(){ | |
| var item, url, user, pass | |
| var decryptedRow = '"url","username","password"\n'; | |
| for (i=0; i < model.length; i++) { | |
| PasswordManager.requestShowPassword(i); | |
| item = pl.getListItemByIndex(i).childNodes[0]; | |
| url = item.childNodes[0].childNodes[0] | |
| user = item.childNodes[1].childNodes[0].value | |
| pass = item.childNodes[2].childNodes[0].value | |
| decryptedRow += url + ', ' + user + ', ' + pass + '\n' | |
| }; | |
| console.log(decryptedRow); | |
| } | |
| ,300); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment