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

早期版本下保存的WeChat Files,在微信中可以正常看到以往的数据,但解密数据库却没有信息 #76

Open
Yamico opened this issue Feb 7, 2024 · 5 comments
Labels
question Further information is requested

Comments

@Yamico
Copy link

Yamico commented Feb 7, 2024

问题描述
早期版本下保存的WeChat Files,在安装新版本指定目录为旧数据目录后,在微信中可以正常看到以往的数据,但工具不行。
在获取秘钥后进行解密后,发现db文件大小虽然很大,而数据库可见表中却几乎没有几条数据。
比如单独解析文件 MSG0,解密后文件大小有50M,但表中几乎没有什么数据,想请教下这个是什么问题导致的?
image
image

复现步骤

  1. 将保留的聊天记录,复制至虚拟机(win10)
  2. 安装旧版本微信为3.4.0.54,指定路径,进行加载,正确识别(或可直接安装最新版,这里仅为了保险)
  3. 提取key
  4. 下载安装新版微信3.9.9.35,指定消息保存路径为先前版本路径
  5. 提取key,确认与步骤2的key一致
  6. 将数据文件挪至外部机器,使用decrypt_merge函数解析
  7. 单独对MSG数据进行解析

预期行为
解析后的数据库中应该可以找到以前的内容

实际行为
实际解密成功,文件保持原来大小,但不可以找到以前的记录,即使文件很大,可表很小

环境信息

  • pywxdump版本:v2.4.32
  • 操作系统版本:win11 22h2
  • python版本:3.10
  • 微信版本:3.9.9.35

其他信息
我很好奇这是怎么回事,数据都在却看不到,求解

@xaoyaoo
Copy link
Owner

xaoyaoo commented Feb 12, 2024

你直接使用 wxdump decrypt 解密试一下。
ps: 我没有遇到过这样的问题

@Yamico
Copy link
Author

Yamico commented Feb 13, 2024

很遗憾结果还是看不到 :(

@xaoyaoo
Copy link
Owner

xaoyaoo commented Feb 13, 2024

你有解析所有的MSG开头的文件吗? eg: MSG0.db MSG1.db

@Yamico
Copy link
Author

Yamico commented Feb 14, 2024

先前的备份版本中,微信id/Msg目录下并没有Multi目录,如图所示:
image
在经过安装微信设定记录存储位置后,才出现了Multi/MSG0 文件以及其他几个文件。仅有一个较大的MSG0文件,且解密后无数据

@xaoyaoo
Copy link
Owner

xaoyaoo commented Feb 15, 2024

如果方便的话,将文件发我看看

@xaoyaoo xaoyaoo added the question Further information is requested label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants