refactor: make inject mode configurable

This commit is contained in:
Dobin
2024-02-08 10:55:14 +00:00
parent 75c329c152
commit 865cfb5247
3 changed files with 14 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ from helper import *
import shutil
def inject_exe(shc_file, exe_in, exe_out):
def inject_exe(shc_file, exe_in, exe_out, mode):
print("--[ Injecting: {} into: {} -> {} ]".format(
shc_file, exe_in, exe_out
))
@@ -12,7 +12,7 @@ def inject_exe(shc_file, exe_in, exe_out):
subprocess.run([
"python3.exe",
"redbackdoorer.py",
"1,1",
mode,
shc_file,
exe_out
], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)