From 3ca867538fe9936b5fc8bb81b1002550e6fc71ca Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Mon, 4 Sep 2023 20:03:36 +0200 Subject: [PATCH] removed debug prints, fixed signed filename --- obfuscation.py | 4 ---- sign.py | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/obfuscation.py b/obfuscation.py index 6662634..549bfba 100644 --- a/obfuscation.py +++ b/obfuscation.py @@ -141,18 +141,14 @@ def obfuscate(PASS, CFLOW_PASS, cflow, junk) : if idx+1 < len(lines)-1 and "//END" in lines[idx+1] or "//END" in line: in_func = False wait_for_func_close = True - print(f"continue1 {in_func} {line}") continue if wait_for_func_close and "}" in line : in_func = False wait_for_func_close = False - print(f"continue2 {in_func} {line}") continue if wait_for_func_close : - print(f"continue3 {in_func} {line}") continue - print(in_func, line) if "//START" in line : in_func = True if "/*" in line : in_comment = True elif "*/" in line : in_comment = False diff --git a/sign.py b/sign.py index e88abfe..e40d14e 100644 --- a/sign.py +++ b/sign.py @@ -73,8 +73,7 @@ def sign(filename) : signed_exe = exe_data + signature # Save the signed .exe file - signed_exe_filename = 'sample_out.exe' - with open(signed_exe_filename, 'wb') as signed_exe_file: + with open(filename, 'wb') as signed_exe_file: signed_exe_file.write(signed_exe) print(f"Successfully signed {filename}.")