X
Tap here to go to the mobile version of the site.

Support Forum

finding passwords in Mozilla files

Posted

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.

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.

Additional System Details

Installed Plug-ins

  • -Default Plug-in
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • getplusplusadobe16248
  • RealArcade_NPAPI_Plugin
  • Zylom Plugin
  • 1.9.0009.1
  • Java(TM) Platform SE binary
  • Allows browsing on RealArcade sites with Mozilla browsers.
  • Shockwave Flash 10.0 r22
  • EntriqVersionCheck
  • Download Manager Plugin
  • Google Update
  • GEPlugin
  • 4.0.50524.0
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
  • 2,5,3,1
  • Java Plug-in 1.6.0_10 for Netscape Navigator (DLL Helper)
  • Npdsplay dll
  • DRM Netscape Network Object
  • DRM Store Netscape Plugin

Application

  • User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.9) Gecko/20100315 Firefox/3.5.9 GTB7.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17584 solutions 159079 answers

Helpful Reply

See http://kb.mozillazine.org/Password_Manager#Backing_up_and_restoring_passwords

Question owner

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

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
cor-el
  • Top 10 Contributor
  • Moderator
17584 solutions 159079 answers

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.

See http://kb.mozillazine.org/key3.db

You need to place signons.sqlite and key3.db from that backup in the [http://kb.mozillazine.org/Profile_folder_-_Firefox 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. See http://kb.mozillazine.org/key3.db

Question owner

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

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
cor-el
  • Top 10 Contributor
  • Moderator
17584 solutions 159079 answers

Yes, you can simply drag the two mentioned files into the Firefox Profile Folder

Yes, you can simply drag the two mentioned files into the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]

Question owner

Thanks very much again!

Chris

Thanks very much again! Chris
Digitalmind 0 solutions 2 answers

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

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 <pre><nowiki> (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(); } })() </nowiki></pre> Henry

Modified by cor-el