Skip to content

Unable to find nss3.dll on Windows (Python 64bits, Firefox 32bits) #8

Description

@I2obiN

Trying to get this to work on Windows, the script can't seem to find the nss3.dll

The path to the firefox directory for Windows in the script is:

line 186 -- firefox = r"C:\Program Files (x86)\Mozilla Firefox"

Is that 'r' supposed to be there?

Running Python 2.7 and Win10

Activity

  1. unode commented on Feb 2, 2017

    @unode
    Owner

    Yes, the r makes it a raw string.

    Can you paste the location of your Firefox installation?
    Can you also confirm if nss3.dll is present in that directory?

    Can you also run firefox_decrypt.py -vvv (make sure to remove your password from the output).

  2. changed the title [-]Hey[/-] [+]Unable to find nss3.dll on Windows[/+] on Feb 2, 2017
  3. I2obiN commented on Feb 3, 2017

    @I2obiN
    Author

    Okay cool, I have firefox in the default location of "C:\Program Files (x86)\Mozilla Firefox" and can confirm nss3.dll is located there

    This is the output I get,

    C:\Python27>python.exe firefox_decrypt.py -vvv 2017-02-03 05:11:45,407 - DEBUG - Parsed commandline arguments: Namespace(choice=None, export_pass=False, list=False, no_interactive=False, profile='C:\\Users\\thoma\\AppData\\Roaming\\Mozilla\\Firefox', verbose=3) 2017-02-03 05:11:45,407 - DEBUG - Skipping password store test, not exporting 2017-02-03 05:11:45,407 - DEBUG - PATH is now C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\TShell\TShell\;C:\Users\thoma\Anaconda2;C:\Users\thoma\Anaconda2\Scripts;C:\Users\thoma\Anaconda2\Library\bin;C:\Users\thoma\AppData\Local\Microsoft\WindowsApps;;C:\Program Files (x86)\Mozilla Firefox 2017-02-03 05:11:45,407 - DEBUG - Loading NSS library from C:\Program Files (x86)\Mozilla Firefox\nss3.dll 2017-02-03 05:11:45,408 - ERROR - Problems opening 'nss3.dll' required for password decryption 2017-02-03 05:11:45,408 - ERROR - Error was [Error 193] %1 is not a valid Win32 application

  4. unode commented on Feb 3, 2017

    @unode
    Owner

    I suspect this might be an incompatibility between your Python version and your Firefox version.
    In particular your Python 2.7 is probably 64bits while your Firefox is 32bits. These have to match.

    Can you confirm by checking your list of installed programs or following these instructions.

  5. I2obiN commented on Feb 3, 2017

    @I2obiN
    Author

    Yep turned out it was Python 2.7 64bit, thank you for your help really really appreciate it :)

  6. changed the title [-]Unable to find nss3.dll on Windows[/-] [+]Unable to find nss3.dll on Windows (Python 64bits, Firefox 32bits)[/+] on Feb 3, 2017
  7. unode commented on Feb 3, 2017

    @unode
    Owner

    Glad it works now. You are welcome.

  8. SweetLiberty92 commented on Mar 4, 2018

    @SweetLiberty92

    @unode Why does the version of Python have to be the same as the version of Firefox? Is this because 32-bit python would be trying to load 64-bit dll?

  9. unode commented on Mar 5, 2018

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions