removed debug prints, fixed signed filename

This commit is contained in:
2023-09-04 20:03:36 +02:00
parent 5ea7f6ae5d
commit 3ca867538f
2 changed files with 1 additions and 6 deletions

View File

@@ -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: if idx+1 < len(lines)-1 and "//END" in lines[idx+1] or "//END" in line:
in_func = False in_func = False
wait_for_func_close = True wait_for_func_close = True
print(f"continue1 {in_func} {line}")
continue continue
if wait_for_func_close and "}" in line : if wait_for_func_close and "}" in line :
in_func = False in_func = False
wait_for_func_close = False wait_for_func_close = False
print(f"continue2 {in_func} {line}")
continue continue
if wait_for_func_close : if wait_for_func_close :
print(f"continue3 {in_func} {line}")
continue continue
print(in_func, line)
if "//START" in line : in_func = True if "//START" in line : in_func = True
if "/*" in line : in_comment = True if "/*" in line : in_comment = True
elif "*/" in line : in_comment = False elif "*/" in line : in_comment = False

View File

@@ -73,8 +73,7 @@ def sign(filename) :
signed_exe = exe_data + signature signed_exe = exe_data + signature
# Save the signed .exe file # Save the signed .exe file
signed_exe_filename = 'sample_out.exe' with open(filename, 'wb') as signed_exe_file:
with open(signed_exe_filename, 'wb') as signed_exe_file:
signed_exe_file.write(signed_exe) signed_exe_file.write(signed_exe)
print(f"Successfully signed {filename}.") print(f"Successfully signed {filename}.")