From fb4ee59deea335d439f360008c8058657b19c596 Mon Sep 17 00:00:00 2001 From: Kazuminn Date: Sat, 3 Oct 2020 17:58:43 +0900 Subject: [PATCH] refactor --- src/detections/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detections/utils.rs b/src/detections/utils.rs index 0dad0544..ec1c4877 100644 --- a/src/detections/utils.rs +++ b/src/detections/utils.rs @@ -121,7 +121,7 @@ fn check_obfu(string: &str) -> std::string::String { if percent < minpercent as usize { obfutext.push_str("Possible command obfuscation: only "); - re = Regex::new(r"{0:P0}").unwrap(); + re = Regex::new(r"\{0:P0}").unwrap(); let percent = &percent.to_string(); if let Some(_caps) = re.captures(percent) { if let Some(_data) = _caps.get(0) {