Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
I2obiN opened this issue Feb 2, 2017 · 7 comments
Closed

Comments

@I2obiN
Copy link

I2obiN commented Feb 2, 2017

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

@unode
Copy link
Owner

unode commented Feb 2, 2017

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).

@unode unode changed the title Hey Unable to find nss3.dll on Windows Feb 2, 2017
@I2obiN
Copy link
Author

I2obiN commented Feb 3, 2017

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

@unode
Copy link
Owner

unode commented Feb 3, 2017

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.

@I2obiN
Copy link
Author

I2obiN commented Feb 3, 2017

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

@unode unode changed the title Unable to find nss3.dll on Windows Unable to find nss3.dll on Windows (Python 64bits, Firefox 32bits) Feb 3, 2017
@unode
Copy link
Owner

unode commented Feb 3, 2017

Glad it works now. You are welcome.

@unode unode closed this as completed Feb 3, 2017
@siesta888
Copy link

@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?

@unode
Copy link
Owner

unode commented Mar 5, 2018

@Ike-Clinton it's a limitation. Not versions but architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants