unode / firefox_decrypt

Firefox Decrypt is a tool to extract passwords from Mozilla (Firefox™, Waterfox™, Thunderbird®, SeaMonkey®) profiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

I2obiN opened this issue · comments

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

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

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

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.

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

Glad it works now. You are welcome.

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