finding passwords in Mozilla files
I found today and then lost instruction as to HOW to recover passwords from a file in the Documents and settings/mozilla folder. But cannot now find the answer. Anyone able to point me in the right direction please as I have found an OLD backup of the Documents folder and all the files therein.
Alle Antworten (7)
Erm, MANY thanks for the reply! But that ended up about a foot above my head I'm afraid! ;-)
Any chance of a reply in plain idiots language please?? Chris
You need to place signons.sqlite and key3.db from that backup in the Firefox Profile Folder The file key3.db stores the encryption key and Firefox can't decrypt the names and passwords in signons.sqlite without the correct key3.db file.
So simply drag them across? If this is so then thanks for your aid and have a good weekend! But above all thank you for your help!
Chris Goddard
Yes, you can simply drag the two mentioned files into the Firefox Profile Folder
Thanks very much again!
Chris
Hi
It is so simple go to > Tools > Error console....copy and paste the below code into code bar and press Evaluate....that's it all done
(function(){ var Cc = Components.classes; var Ci = Components.interfaces; netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); var tokendb = Cc["@mozilla.org/security/pk11tokendb;1"] .createInstance(Ci.nsIPK11TokenDB); var token = tokendb.getInternalKeyToken(); try { token.login(true);} catch (e) { } if (token.isLoggedIn()) { var passwordmanager = Cc["@mozilla.org/login-manager;1"] .getService(Ci.nsILoginManager); var signons = passwordmanager.getAllLogins({}); for (i=0;i<signons.length;i++) { try { var host = signons[i].hostname; var realm = signons[i].httpRealm; var user = signons[i].username; var userf = signons[i].usernameField; var password = signons[i].password; var passwordf = signons[i].passwordField; var submiturl = signons[i].formSubmitURL; } catch(e) {} } var json =Cc["@mozilla.org/dom/json;1"] .createInstance(Ci.nsIJSON) .encode(signons); var fp=Cc["@mozilla.org/filepicker;1"] .createInstance(Components.interfaces.nsIFilePicker); fp.init(window,"",Ci.nsIFilePicker.modeSave); fp.defaultString="signons.json"; if (fp.show() == fp.returnCancel) return; var filoutputStream=Cc["@mozilla.org/network/file-output-stream;1"] .createInstance(Ci.nsIFileOutputStream); filoutputStream.init(fp.file,0x04|0x08,0644,0); filoutputStream.write(json,json.length); filoutputStream.close(); } })()
Henry
Geändert am