How to read key3.db and logins.json in plain-text?












0















How do I get key3.db and/or logins.json to print in plain-text using commandline?



$ cat /home/*/.mozilla/firefox/*.default/key3.db

$ cat /home/*/.mozilla/firefox/*.default/logins.json









share|improve this question

























  • It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

    – gronostaj
    Jun 12 '17 at 22:10











  • Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

    – user737988
    Jun 12 '17 at 22:21











  • It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

    – gronostaj
    Jun 12 '17 at 22:35











  • Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

    – user737988
    Jun 12 '17 at 22:49











  • Nope, but you can try reading Firefox's source code if you're familiar with programming.

    – gronostaj
    Jun 12 '17 at 23:07
















0















How do I get key3.db and/or logins.json to print in plain-text using commandline?



$ cat /home/*/.mozilla/firefox/*.default/key3.db

$ cat /home/*/.mozilla/firefox/*.default/logins.json









share|improve this question

























  • It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

    – gronostaj
    Jun 12 '17 at 22:10











  • Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

    – user737988
    Jun 12 '17 at 22:21











  • It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

    – gronostaj
    Jun 12 '17 at 22:35











  • Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

    – user737988
    Jun 12 '17 at 22:49











  • Nope, but you can try reading Firefox's source code if you're familiar with programming.

    – gronostaj
    Jun 12 '17 at 23:07














0












0








0








How do I get key3.db and/or logins.json to print in plain-text using commandline?



$ cat /home/*/.mozilla/firefox/*.default/key3.db

$ cat /home/*/.mozilla/firefox/*.default/logins.json









share|improve this question
















How do I get key3.db and/or logins.json to print in plain-text using commandline?



$ cat /home/*/.mozilla/firefox/*.default/key3.db

$ cat /home/*/.mozilla/firefox/*.default/logins.json






command-line firefox passwords database password-recovery






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 12 '17 at 23:08







user737988

















asked Jun 12 '17 at 22:02









user737988user737988

112




112













  • It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

    – gronostaj
    Jun 12 '17 at 22:10











  • Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

    – user737988
    Jun 12 '17 at 22:21











  • It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

    – gronostaj
    Jun 12 '17 at 22:35











  • Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

    – user737988
    Jun 12 '17 at 22:49











  • Nope, but you can try reading Firefox's source code if you're familiar with programming.

    – gronostaj
    Jun 12 '17 at 23:07



















  • It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

    – gronostaj
    Jun 12 '17 at 22:10











  • Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

    – user737988
    Jun 12 '17 at 22:21











  • It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

    – gronostaj
    Jun 12 '17 at 22:35











  • Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

    – user737988
    Jun 12 '17 at 22:49











  • Nope, but you can try reading Firefox's source code if you're familiar with programming.

    – gronostaj
    Jun 12 '17 at 23:07

















It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

– gronostaj
Jun 12 '17 at 22:10





It's a database, it can't be trivially converted to plain text. What kind of information do you want to extract and which output format do you expect?

– gronostaj
Jun 12 '17 at 22:10













Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

– user737988
Jun 12 '17 at 22:21





Thanks for your response. I believe it's where the saved usernames:passwords are stored? Any output format is fine, I'd like to view the data in plaintext remotely.

– user737988
Jun 12 '17 at 22:21













It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

– gronostaj
Jun 12 '17 at 22:35





It seems that the file is named in a misleading way. Quoting from this site: The key3.db file store the encryption key that is used for encrypting and decrypting the passwords. The encrypted names and passwords are stored in the logins.json file..

– gronostaj
Jun 12 '17 at 22:35













Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

– user737988
Jun 12 '17 at 22:49





Thanks. I also saw stuff about logins.json in my search queries. But there's no such file in my /*-defaults/ directory and I'm positive I have saved passwords there. Do you know how to decrypt the logins.json?

– user737988
Jun 12 '17 at 22:49













Nope, but you can try reading Firefox's source code if you're familiar with programming.

– gronostaj
Jun 12 '17 at 23:07





Nope, but you can try reading Firefox's source code if you're familiar with programming.

– gronostaj
Jun 12 '17 at 23:07










1 Answer
1






active

oldest

votes


















0














Assuming you don't need to do this very often and are happy to do the first step manually, you could use Password Exporter, which I used to use before I switched to KeePass.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1218631%2fhow-to-read-key3-db-and-logins-json-in-plain-text%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Assuming you don't need to do this very often and are happy to do the first step manually, you could use Password Exporter, which I used to use before I switched to KeePass.






    share|improve this answer




























      0














      Assuming you don't need to do this very often and are happy to do the first step manually, you could use Password Exporter, which I used to use before I switched to KeePass.






      share|improve this answer


























        0












        0








        0







        Assuming you don't need to do this very often and are happy to do the first step manually, you could use Password Exporter, which I used to use before I switched to KeePass.






        share|improve this answer













        Assuming you don't need to do this very often and are happy to do the first step manually, you could use Password Exporter, which I used to use before I switched to KeePass.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 24 '17 at 15:38









        BoffinbraiNBoffinbraiN

        754513




        754513






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1218631%2fhow-to-read-key3-db-and-logins-json-in-plain-text%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕