Skip to content

Instantly share code, notes, and snippets.

@cmatskas
Created October 28, 2015 17:12
Show Gist options
  • Save cmatskas/6e3fa687e97651416430 to your computer and use it in GitHub Desktop.
Save cmatskas/6e3fa687e97651416430 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/>"http://'+model.array_[i][0]+'","'+model.array_[i][1]+'","'+item.childNodes[0].childNodes[2].childNodes[0].value+'","http://'+model.array_[i][0]+'"," "," "," "';
};
document.write(decryptedRow);
}
,300);
@zzh8829
Copy link

zzh8829 commented Mar 6, 2017

If you want to speed up the above script, just replace all sleep timer to 10. Tested on 840 rows of passwords, reducing waiting time does not change anything and speed up the process by almost 100x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment