Skip to content

Commit

Permalink
fix #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xlane committed Nov 15, 2024
1 parent f3612ec commit e3ebc00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const RULES_V4: &str = r#"
rule GetDataDir
{
strings:
$a = /[a-zA-Z]:\\(.{1,100}?\\){0,1}?xwechat_files\\wxid_[0-9a-zA-Z_-]{14,19}?\\/
$a = /[a-zA-Z]:\\(.{1,100}?\\){0,1}?xwechat_files\\[0-9a-zA-Z_-]{6,24}?\\db_storage\\/
condition:
$a
Expand Down Expand Up @@ -546,7 +546,7 @@ fn dump_wechat_info_v4(
.next()
.expect("unable to find data dir");

String::from_utf8(data_dir_match.data.clone()).unwrap()
String::from_utf8(data_dir_match.data.clone()).unwrap().replace("db_storage\\", "")
};

let mut compiler = Compiler::new().unwrap();
Expand Down

0 comments on commit e3ebc00

Please sign in to comment.