Comments (13)
I've managed to reproduce the problem.
I'll hopefully have a fix in a few hours.
from firefox_decrypt.
Sorry that was a mistake on my part. Can you try the latest commit?
from firefox_decrypt.
the username is a Russian letter. I think the error hidden in this
from firefox_decrypt.
I can't seem to reproduce this issue on my system.
The problem is clearly encoding related and as you pointed out most likely due to the Russian characters on your username.
from firefox_decrypt.
I'm a C ++ programmer myself and I can not fix the problem in the python.
I could check your builds until we solve the encoding problem together. if you are interested in this.
from firefox_decrypt.
I didn't have time too look further into this.
Reproducing this problem requires both a non-ASCII character/encoding as well as Windows neither of which I have readily at hand.
There are ongoing efforts to make tests run on AppVeyor in the appveyor branch but this is very much work in progress.
On the other hand, since it's unclear how easy it will be to run the current Bash based tests on AppVeyor, there's also some efforts both on #25 and the pytests branch to make testing more robust and convert the current testing framework to Python.
All of this will take time and any help is most appreciated. Feel free to fork and submit pull requests.
from firefox_decrypt.
As for the actual NSS interaction problem, it seems Windows does not use UTF-8 as default character encoding for library interaction. From different sources I found references to different ANSI codepages and UTF-16. This will require further testing.
If you can, try changing the encoding used by the bytestring that gets passed to NSS_Init and see if you get it to work on your system.
from firefox_decrypt.
I try you last build with Python 3.6.5(on this PC too), its all right and great well.
But...need 2.7 Python for nuitka and cython.
from firefox_decrypt.
Not as easy as I though, and in fact with Python 2.7 I couldn't find a compatible solution. With Python 3 it worked fine.
The problem has to do with the encoding used by cmd.exe
.
The only alternative is to set your terminal to be UTF8 compatible but this has it's own problems.
So on this note and given 2.7 end of life is approaching, I'm currently dropping support for Python 2.7 on Windows.
Please try Python 3 instead and let me know if it worked.
from firefox_decrypt.
Not as easy as I though, and in fact with Python 2.7 I couldn't find a compatible solution. With Python 3 it worked fine.
The problem has to do with the encoding used by cmd.exe.
The only alternative is to set your terminal to be UTF8 compatible but this has it's own problems.
for russian language: chcp 866
but....error too.
python 3 may be one way.
from firefox_decrypt.
with python 3
Microsoft Windows [Version 6.1.7601]
(c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.
C:\Users\Алиса>C:\Users\Алиса\Desktop\firefox_decrypt.py
Traceback (most recent call last):
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 952, in
main()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 918, in main
nss = NSSInteraction()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 413, in init
self.NSS = NSSDecoder()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 256, in init
self.load_libnss()
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 370, in load_libnss
self.NSS = self.find_nss(locations, nssname)
File "C:\Users\Алиса\Desktop\firefox_decrypt.py", line 302, in find_nss
os.chdir(loc)
FileNotFoundError: [WinError 3] Системе не удается найти указанный путь: 'C:\Pr
ogram Files (x86)\Mozilla Firefox'
My system not have this path. Right path is: C:\Program Files\Mozilla Firefox
from firefox_decrypt.
I try last commit. Work correctly.
from firefox_decrypt.
Great, good to know. There's still some work to do as things broke on non-UTF8 Linux systems.
Thanks for the effort and the report.
from firefox_decrypt.
Related Issues (20)
- unsupported encoding 'locale': cp1252 HOT 2
- Problem with nss3.dll HOT 3
- TypeError: 'type' object is not subscriptable ERROR with firefox_decrypt.py HOT 8
- Why jupyter notebook uses python3.9 when in anaconde3 folder is python3.8 installed? HOT 3
- Annotation error HOT 1
- How do I get tests to pass! Debian Bullseye HOT 14
- SyntaxError: future feature annotations is not defined HOT 2
- Couldn't Initialize NSS (Debian, ParrotOS) HOT 4
- Does not support ubuntu22.04? HOT 2
- ERROR - Couldn't initialize NSS (DEBIAN, KALI LINUX) HOT 3
- nss3 from firefox developer edition isn't found HOT 3
- PWStore = list[dict[str, str]] TypeError: 'type' object is not subscriptable HOT 1
- "Feature"-Request pyproject.tml and pypi HOT 2
- TypeError: run() got an unexpected keyword argument 'capture_output' HOT 2
- Error 'json.decoder.JSONDecodeError: Expecting ':' delimiter: line 1 column 106212 (char 106211)' on macOS 13.3 with Python 3 HOT 3
- Error i don't know HOT 6
- Retrieving cookies HOT 1
- failing on undecryptable password entries HOT 13
- Darwin 21.6.0, Firefox 118: libnss3 requires libmozglue HOT 3
- JSON iterator fails on a password that's been deleted HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firefox_decrypt.