获取密钥时终端乱码
设备与软件信息
系统信息
- 操作系统: macOS Sequoia 15.4.1
- 设备型号: MacBook M1
- 内存与存储: 8GB RAM + 256GB SSD
软件信息
- 微信版本: 使用FAQ版本 4.3.80
应用程序信息
- Chalog
- 编译语言: 使用 Go 编译
- 运行效果: 参见视频演示
应该是 panic 了,chatlog --debug 运行,获取密钥,然后看下 文稿/chatlog/chatlog.log 中是否有堆栈信息
应该是 panic 了,
chatlog --debug运行,获取密钥,然后看下 文稿/chatlog/chatlog.log 中是否有堆栈信息
文件日志如下: 2025-09-08T14:20:49+08:00 INF tui config: {"config_dir":"/Users/haohuang/.chatlog","last_account":"","history":null,"webhook":null} 2025-09-08T14:20:53+08:00 DBG Starting 8 workers for V4 key search 2025-09-08T14:21:09+08:00 DBG Read memory region, size: 536870912 bytes 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=16 chunk_size=33555456 end_offset=20000000 start_offset=1DFFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=15 chunk_size=33555456 end_offset=1E000000 start_offset=1BFFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=14 chunk_size=33555456 end_offset=1C000000 start_offset=19FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=13 chunk_size=33555456 end_offset=1A000000 start_offset=17FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=12 chunk_size=33555456 end_offset=18000000 start_offset=15FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=11 chunk_size=33555456 end_offset=16000000 start_offset=13FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=10 chunk_size=33555456 end_offset=14000000 start_offset=11FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=9 chunk_size=33555456 end_offset=12000000 start_offset=FFFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=8 chunk_size=33555456 end_offset=10000000 start_offset=DFFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=7 chunk_size=33555456 end_offset=E000000 start_offset=BFFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=6 chunk_size=33555456 end_offset=C000000 start_offset=9FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=5 chunk_size=33555456 end_offset=A000000 start_offset=7FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=4 chunk_size=33555456 end_offset=8000000 start_offset=5FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=3 chunk_size=33555456 end_offset=6000000 start_offset=3FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=2 chunk_size=33555456 end_offset=4000000 start_offset=1FFFC00 total_chunks=16 2025-09-08T14:21:09+08:00 DBG Processing memory chunk chunk_index=1 chunk_size=33554432 end_offset=2000000 start_offset=0 total_chunks=16
🖥️ 环境背景
我是在全新安装系统后,登录微信发现聊天记录是全空的,没有任何历史内容。
⚠️ 问题描述
我测试了该工具的各个 Release 版本,发现从 0.16 版本开始,工具加入了图片 Key 的获取功能。但在我的场景下(聊天记录为空),运行 chatlog命令后,获取到的内容同样为空。此时如果运行 chatlog key命令,程序会提示 Panic 错误,错误信息是 input not full block。
🔍 测试过程 1. 我改用 0.15 版本尝试获取 Key,成功了。 2. 之后我再次使用新版本(0.16及以上)运行 chatlog key,依然报同样的 Panic 错误。 3. 当我发送了一张图片到这个微信账号(使聊天记录里有了图片内容)后,再使用新版本的工具,就能够正常获取到 Key 了。 💎 结论分析
因此,问题的根源应该是:当微信聊天内容为空,或者聊天记录中还没有任何图片时,试图去获取图片的 Key,会引发此问题。这可能是工具在提取逻辑上未充分考虑这种边界情况。
📋 反馈建议
希望这些信息能帮助遇到类似情况的朋友,也希望能帮助开发者完善工具的提取逻辑,使其在聊天记录为空时也能有更稳健的处理机制。
因此,问题的根源应该是:当微信聊天内容为空,或者聊天记录中还没有任何图片时,试图去获取图片的 Key,会引发此问题。这可能是工具在提取逻辑上未充分考虑这种边界情况。
感谢提供有效信息,稍后修复这个边界问题
问一下修复了吗
我也碰到了同一个问题,有解决办法吗?