mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: exe delete
This commit is contained in:
@@ -9,6 +9,7 @@ from pygments.formatters import HtmlFormatter
|
|||||||
import difflib
|
import difflib
|
||||||
import subprocess
|
import subprocess
|
||||||
from ansi2html import Ansi2HTMLConverter
|
from ansi2html import Ansi2HTMLConverter
|
||||||
|
import pathlib
|
||||||
|
|
||||||
from observer import observer
|
from observer import observer
|
||||||
from config import config
|
from config import config
|
||||||
@@ -190,7 +191,7 @@ def add_project():
|
|||||||
settings.decoder_style = "xor_2"
|
settings.decoder_style = "xor_2"
|
||||||
settings.carrier_name = "alloc_rw_rx"
|
settings.carrier_name = "alloc_rw_rx"
|
||||||
settings.carrier_invoke_style = CarrierInvokeStyle.BackdoorFunc
|
settings.carrier_invoke_style = CarrierInvokeStyle.BackdoorFunc
|
||||||
settings.payload_location = PayloadLocation.CODE
|
settings.payload_location = PayloadLocation.DATA
|
||||||
settings.fix_missing_iat = True
|
settings.fix_missing_iat = True
|
||||||
settings.plugin_antiemulation = "sirallocalot"
|
settings.plugin_antiemulation = "sirallocalot"
|
||||||
|
|
||||||
@@ -256,6 +257,8 @@ def build_project(project_name):
|
|||||||
if project_settings == None:
|
if project_settings == None:
|
||||||
logger.error("Project {} not found".format(project_name))
|
logger.error("Project {} not found".format(project_name))
|
||||||
return redirect("/projects", code=302)
|
return redirect("/projects", code=302)
|
||||||
|
|
||||||
|
pathlib.Path(project_settings.get_inject_exe_out()).unlink(missing_ok=True)
|
||||||
|
|
||||||
#if project.settings.get_inject_exe_in().endswith(".dll"):
|
#if project.settings.get_inject_exe_in().endswith(".dll"):
|
||||||
# if project.settings.dllfunc == "":
|
# if project.settings.dllfunc == "":
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ def clean_files(settings):
|
|||||||
settings.project_asm_path,
|
settings.project_asm_path,
|
||||||
settings.project_shc_path,
|
settings.project_shc_path,
|
||||||
settings.project_exe_path,
|
settings.project_exe_path,
|
||||||
settings.get_inject_exe_out(),
|
|
||||||
]
|
]
|
||||||
for file in files_to_clean:
|
for file in files_to_clean:
|
||||||
pathlib.Path(file).unlink(missing_ok=True)
|
pathlib.Path(file).unlink(missing_ok=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user