From 24b7ae54a188a4d0e7717e5fd5aa4d9b24ea5133 Mon Sep 17 00:00:00 2001 From: Pranav Dronavalli Date: Sun, 7 Jan 2024 22:27:24 -0600 Subject: [PATCH] fixed flow bug: --- auto_obfuscate/src/flow.rs | 2 +- auto_obfuscate/src/obfuscate.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/auto_obfuscate/src/flow.rs b/auto_obfuscate/src/flow.rs index 7823645..be4cdb9 100644 --- a/auto_obfuscate/src/flow.rs +++ b/auto_obfuscate/src/flow.rs @@ -112,7 +112,7 @@ impl VisitMut for FlowObfuscator { //if use macro enabled, use macro to expand to dummy loop if self.use_macro { let macro_call = syn::parse_quote! { - labyrinth_macros::generate_dummy_loop!() + labyrinth::flow_stmt!(); }; block.stmts.insert(0, macro_call); } else { diff --git a/auto_obfuscate/src/obfuscate.rs b/auto_obfuscate/src/obfuscate.rs index adcfd1f..b7c1531 100644 --- a/auto_obfuscate/src/obfuscate.rs +++ b/auto_obfuscate/src/obfuscate.rs @@ -22,10 +22,8 @@ impl Obfuscator { if self.string_obfuscator.enabled { result = self.string_obfuscator.obfuscate_strings(&result); } - println!("{}", result); if self.flow_obfuscator.enabled { result = self.flow_obfuscator.flow_obfuscate(&result); - println!("{}", result); } if self.rename_obfuscator.enabled { result = self.rename_obfuscator.rename(&result);