refactor: background task support

This commit is contained in:
Dobin
2024-03-08 11:46:55 +00:00
parent 387862866b
commit 03291aed98
5 changed files with 50 additions and 19 deletions
+3 -2
View File
@@ -128,7 +128,8 @@ def main():
settings.inject_exe_in = args.inject
settings.inject_exe_out = args.inject.replace(".exe", ".infected.exe")
start(settings)
exit_code = start(settings)
exit(exit_code)
def start(settings: Settings):
@@ -224,7 +225,7 @@ def start(settings: Settings):
clean_files()
writelog()
exit(exit_code)
return exit_code
def obfuscate_shc_loader(file_shc_in, file_shc_out):