feature: copy to out/ at the end

This commit is contained in:
Dobin
2024-02-04 08:21:24 +00:00
parent ae859766c1
commit 9f7466d775
2 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -58,7 +58,7 @@ options_verify = {
"inject_exe": True,
"inject_exe_in": "exes/procexp64.exe",
"inject_exe_out": "exes/procexp64-a.exe",
"inject_exe_out": "out/procexp64-a.exe",
"alloc_style": AllocStyle.RWX,
"exec_style": ExecStyle.CALL,
@@ -121,6 +121,10 @@ def main():
print("--[ Test Append shellcode ]")
test_shellcode("main-clean-append.bin")
# copy it to out
shutil.copyfile("main-clean-append.bin", os.path.join("out/", "main-clean-append.bin"))
if options["inject_exe"]:
inject_exe("main-clean-append.bin", options["inject_exe_in"], options["inject_exe_out"])
if options["verify"]: