mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
feature: inject into dll basic support
This commit is contained in:
@@ -49,6 +49,19 @@ def clean_files(settings):
|
||||
pathlib.Path(file).unlink(missing_ok=True)
|
||||
|
||||
|
||||
def run_exe(exefile, check=True):
|
||||
logger.info("--[ Start infected file: {}".format(exefile))
|
||||
|
||||
if exefile.endswith(".dll"):
|
||||
args = [ "rundll32.exe", "{},BZ2_blockSort".format(exefile) ]
|
||||
elif exefile.endswith(".exe"):
|
||||
args = [ exefile ]
|
||||
else:
|
||||
raise Exception("Unknown file type: {}".format(exefile))
|
||||
|
||||
run_process_checkret(args, check=check)
|
||||
|
||||
|
||||
def run_process_checkret(args, check=True):
|
||||
ret = subprocess.CompletedProcess("", 666)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user