Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

finding passwords in Mozilla files

  • 7 답장
  • 13 이 문제를 만남
  • 4 보기
  • 최종 답변자: Digitalmind

more options

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.

모든 댓글 (7)

more options
more options

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

more options

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

more options

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

more options

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

more options

Thanks very much again!

Chris

more options

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

글쓴이 cor-el 수정일시