You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cached "decrypted" DB has correct SQLite magic header (SQLite format 3\0) but bytes 16+ are garbage (invalid page size 6806, etc.).
Manual verification
AES-256-CBC decryption of session.db page 1 with extracted key produces valid SQLite format 3\0 magic but garbage after byte 16 — confirming key extraction is correct but decryption parameters may differ for v4 Flatpak.
Same issue with message_0.db (26 MB).
sqlcipher CLI with PRAGMA key = "x'<key>'" also returns "file is not a database".
WeChat v4.1.1.4 Linux Flatpak: wx sessions returns "file is not a database"
Environment
com.tencent.WeChat)npm install -g @jackwener/wx-cliSteps to reproduce
QT_SCALE_FACTOR=1.5(otherwise QR code renders split on Xvfb)db_storage/instead ofMsg/):Keys extracted from
/proc/<pid>/memusingx'<64hex><32hex>'pattern — 15 keys found, salts match all database files correctly.all_keys.jsoncreated with matchedenc_key+saltpairs.Expected behavior
wx sessionsshould list recent chat sessions.Actual behavior
Daemon log shows:
The cached "decrypted" DB has correct SQLite magic header (
SQLite format 3\0) but bytes 16+ are garbage (invalid page size 6806, etc.).Manual verification
SQLite format 3\0magic but garbage after byte 16 — confirming key extraction is correct but decryption parameters may differ for v4 Flatpak.sqlcipherCLI withPRAGMA key = "x'<key>'"also returns "file is not a database".Additional context
db_storage/directory structure (not traditionalMsg/)Workaround attempted