Skip to content

Instantly share code, notes, and snippets.

@Marqin
Forked from beaverb1ll/ExportChromePasswords.js
Last active February 26, 2018 17:52
Show Gist options
  • Save Marqin/0f0ff5bac7d3f6fee422cf68b0736370 to your computer and use it in GitHub Desktop.
Save Marqin/0f0ff5bac7d3f6fee422cf68b0736370 to your computer and use it in GitHub Desktop.
ExportChromePasswords.js
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);
};
setTimeout(function(){
decryptedRow += '"hostname","username","password","formSubmitURL","httpRealm","usernameField","passwordField"';
for(i=0; i<model.length; i++){
var item = pl.getListItemByIndex(i);
decryptedRow += '<br/>"'+model.array_[i].shownOrigin+'","'+model.array_[i].username+'","'+item.childNodes[0].childNodes[2].childNodes[0].value+'","'+model.array_[i].url+'"," "," "," "';
};
var newWindow = window.open("", "MsgWindow");
newWindow.document.write(decryptedRow);
}
,300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment