KnugiHK / WhatsApp-Chat-Exporter

A customizable Android and iOS/iPadOS WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14, Crypt15, and new schema supported.
https://wts.knugi.dev/
MIT License
586 stars 85 forks source link

Offset reporting and FileNotFoundError #38

Closed oberkut closed 3 weeks ago

oberkut commented 1 year ago

Decryption key specified, decrypting WhatsApp backup... Common offsets are not applicable to your backup. Trying to brute force it... The offsets of your IV and database are 67 and 193, respectively. To include your offsets in the program, please report it by creating an issue on GitHub: https://github.com/KnugiHK/Whatsapp-Chat-Exporter/issues/new Traceback (most recent call last): File "/home/berkut/.local/bin/wtsexporter", line 8, in sys.exit(main()) File "/home/berkut/.local/lib/python3.10/site-packages/Whatsapp_Chat_Exporter/main.py", line 124, in main error = extract.decrypt_backup(db, key, msg_db, crypt) File "/home/berkut/.local/lib/python3.10/site-packages/Whatsapp_Chat_Exporter/extract.py", line 170, in decrypt_backup with open(output, "wb") as f: FileNotFoundError: [Errno 2] No such file or directory: 'msgstore.db'

KnugiHK commented 1 year ago

Hi. Could you provide the command you entered?

oberkut commented 1 year ago

wtsexporter -a -k key -b msgstore.db.crypt14

KnugiHK commented 1 year ago

Not sure if your problem is related to https://stackoverflow.com/q/18758673/9478891 or https://stackoverflow.com/q/2401628/9478891. Try to specify another location for the database file with this command: wtsexporter -a -k key -b msgstore.db.crypt14 -d /tmp/temp.db

KnugiHK commented 1 year ago

The offset is included in the 0.9.5 release.

KnugiHK commented 3 weeks ago

Since the code is being refactored, the stack trace and the bug reported here may no longer be valid. For now, I will be closing this issue. If anyone encounters a similar problem with the latest version, please feel free to open a new issue.