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

decrypt-db.py fails when cipher_version contains non-digit strings #86

Open
cuihaoleo opened this issue Jul 30, 2021 · 1 comment
Open

Comments

@cuihaoleo
Copy link

decrypt-db.py failed silently after "Trying key..." I let it raise the exception and found:

Traceback (most recent call last):
  File "./decrypt-db.py", line 184, in <module>
    do_decrypt(args.input, output_file, key)
  File "./decrypt-db.py", line 142, in do_decrypt
    version = tuple([int(x) for x in version_str.split(".")])
  File "./decrypt-db.py", line 142, in <listcomp>
    version = tuple([int(x) for x in version_str.split(".")])
ValueError: invalid literal for int() with base 10: '3 community'

This is the version_str I got before line 142: 4.4.3 community

Android 10 + WeChat version 8.0.2 from Google Play.

@ppwwyyxx
Copy link
Owner

ppwwyyxx commented Aug 4, 2021

Thanks! Could you send a fix?

It would also be a good idea to always print the errors about the failure, instead of failing silently.

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

2 participants