refactor: syntax, types, logging, cleanup

This commit is contained in:
Dobin Rutishauser
2025-06-09 08:59:36 +02:00
parent 015ec55975
commit 4c49f2d816
13 changed files with 120 additions and 85 deletions
+2 -2
View File
@@ -51,12 +51,12 @@ def clean_files(settings):
def run_exe(exefile, dllfunc="", check=True):
logger.info("--[ Start infected file: {}".format(exefile))
logger.info("-[ Start infected file: {}".format(exefile))
if exefile.endswith(".dll"):
if dllfunc == "":
dllfunc = "dllMain"
logger.info("----[ No DLL function specified, using default: {}".format(dllfunc))
logger.info("---[ No DLL function specified, using default: {}".format(dllfunc))
#raise Exception("---[ No DLL function specified")
args = [ "rundll32.exe", "{},{}".format(exefile, dllfunc) ]
elif exefile.endswith(".exe"):