0xlane / wechat-dump-rs Goto Github PK
View Code? Open in Web Editor NEW该工具用于导出正在运行中的微信进程的 key 并自动解密所有微信数据库文件以及导出 key 后数据库文件离线解密。
该工具用于导出正在运行中的微信进程的 key 并自动解密所有微信数据库文件以及导出 key 后数据库文件离线解密。
我修改过我的微信路径,目前为G:\WeChat Files
执行wechat-dump-rs.exe报错:G:\WeChat Files\wxid_4bwa1yvxxxxx\Msg\ChatRoomUser.db G:\WeChat Files\wxid_4bwa1yvxxxxx\Msg\Misc.db is not exsit: Error { kind: InvalidInput, message: "strings passed to WinAPI cannot contain NULs" },我确保文件是存在的,我不清楚为什么会报这样的错误
微信版本:3.9.10.27
Release:V1.0.6
确认包含Misc.db文件,并且存在多个Misc.db(qq也存在Misc.db文件)
报错:
┌──(Tom💀TEST)-[/Downloads] 0ms ✓/Downloads] 356ms ⨯
└─# .\wechat-dump-rs.exe
[+] wechat version is 3.9.7.29
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Utf8Error { valid_up_to: 27, error_len: Some(1) }', src\procmem\mod.rs:44:96
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
NativeCommandExitException: Program "wechat-dump-rs.exe" ended with non-zero exit code: 101.
┌──(Tom💀TEST)-[
└─# .\wechat-dump-rs.exe -a
[+] wechat version is 3.9.7.29
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Utf8Error { valid_up_to: 27, error_len: Some(1) }', src\procmem\mod.rs:44:96
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
NativeCommandExitException: Program "wechat-dump-rs.exe" ended with non-zero exit code: 101.
┌──(Tom💀TEST)-[~/Downloads] 63ms ⨯
└─# .\wechat-dump-rs.exe -p 14644
[+] wechat version is 3.9.7.29
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: Utf8Error { valid_up_to: 27, error_len: Some(1) }', src\procmem\mod.rs:44:96
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
NativeCommandExitException: Program "wechat-dump-rs.exe" ended with non-zero exit code: 101.
可以正常打开但是,有的数据页会受损
(base) PS C:\my_program\Asahngdan\WeChatMsg> sqlite3 "C:\my_program\Asahngdan\WeChatMsg\app\DataBase\wechat_14756\MediaMSG0.db" "PRAGMA integrity_check;"
*** in database main ***
Page 6564: btreeInitPage() returns error code 11
Page 6560 is never used
Page 6561 is never used
Page 6562 is never used
Page 6563 is never used
Error: stepping, database disk image is malformed (11)
简单加了个 CI
微信版本 3.9.10.19
dump出来的数据库缺少表 ContactLabel
中间切换过微信,不知道是不是跟切换授权微信有关系。
另外一种情况,是不是没有缓存到 标签数据,本地就不会有表 ContactLabel
部分微信(比如说我)数据库目录不为 wxid_*
可能是 C:\Users\test\Documents\WeChat Files\abc02030405
简单了解了下,个人用户存在两种情况
[0-9a-zA-Z-_]{6,20}
)wxid_[0-9a-zA-Z]{14}
(过去某个版本起,为系统自动生成)Lines 39 to 46 in 7cb6014
C:\secure\wechat-dump-rs-main>wechat-dump-rs.exe
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: FromUtf8Error { bytes: [211, 239, 200, 184, 46, 101, 120, 101], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }', C:\Users\thin0.cargo\registry\src\index.crates.io-6f17d22bba15001f\tasklist-0.2.12\src\lib.rs:217:54
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
win7环境下执行,会报错。
read file version failed
this version of Cargo is older than the 2023
edition, and only supports 2015
, 2018
, and 2021
editions.
d:\tmp1>wechat-dump-rs.exe
[+] wechat version is 3.9.7.29
[+] login phone type is android
[+] wechat data dir is C:\Users\deans\Documents\WeChat Files\sunxxx
[+] account name is sunxxx
thread 'main' panicked at src\main.rs:352:9:
not found key
stack backtrace:
0: 0x7ff741a5a5a3 -
1: 0x7ff7419db97b -
2: 0x7ff741a4e021 -
3: 0x7ff741a5caf4 -
4: 0x7ff741a5c7a3 -
5: 0x7ff741a5cfd0 -
6: 0x7ff741a5cc53 -
7: 0x7ff741a5cbd9 -
8: 0x7ff741a5cbc4 -
9: 0x7ff741aa0365 -
10: 0x7ff741978020 -
11: 0x7ff7419814fb -
12: 0x7ff741972411 -
13: 0x7ff741982f25 -
14: 0x7ff741a9f11c -
15: 0x7fffb50f7344 - BaseThreadInitThunk
16: 0x7fffb54026b1 - RtlUserThreadStart
微信文件路径设置在D盘的英文路径下:D:\Program Files\Tencent\WeChat Files\WeChat Files\wxid_b5efm05dybi121
thread 'main' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-6f17d22bba15001f\tasklist-0.2.13\src\lib.rs:217:54:
called `Result::unwrap()` on an `Err` value: FromUtf8Error { bytes: [77, 101, 115, 115, 97, 103, 101, 84, 111, 111, 108, 115, 32, 213, 253, 202, 189, 176, 230, 32, 50, 46, 55, 46, 101, 120, 101], error: Utf8Error { valid_up_to: 13, error_len: Some(1) } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.