mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: rename exes/ to injectables/
This commit is contained in:
+5
-4
@@ -7,10 +7,11 @@ class FilePath(str):
|
||||
# with data/shellcodes/createfile.bin
|
||||
VerifyFilename: FilePath = FilePath("C:\\Temp\\a")
|
||||
|
||||
# Directory structure
|
||||
PATH_EXES = "data/binary/exes/"
|
||||
|
||||
# Input Binary
|
||||
PATH_INJECTABLES = "data/binary/injectables/"
|
||||
PATH_SHELLCODES = "data/binary/shellcodes/"
|
||||
|
||||
# Input Source
|
||||
PATH_CARRIER = "data/source/carrier/"
|
||||
PATH_DECODER = "data/source/decoder/"
|
||||
PATH_ANTIEMULATION = "data/source/antiemulation/"
|
||||
@@ -18,7 +19,7 @@ PATH_DECOY = "data/source/decoy/"
|
||||
PATH_GUARDRAILS = "data/source/guardrails/"
|
||||
PATH_VIRTUALPROTECT = "data/source/virtualprotect/"
|
||||
|
||||
PATH_PAYLOAD = "data/source/payload/"
|
||||
# Project settings
|
||||
PATH_WEB_PROJECT = "projects/"
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@ class Settings():
|
||||
self.project_exe_path: FilePath = FilePath(self.project_path + "main.exe")
|
||||
self.project_shc_path: FilePath = FilePath(self.project_path + "main.bin")
|
||||
|
||||
# IN: Injectable (like "7z.exe", in data/input/exes/)
|
||||
# IN: Injectable (like "7z.exe", in data/input/injectables/)
|
||||
self.injectable_base: str = ""
|
||||
# IN: Payload / Shellcode (like "createfile.bin", in data/input/shellcodes/)
|
||||
self.payload_base: str = ""
|
||||
@@ -62,7 +62,7 @@ class Settings():
|
||||
def get_inject_exe_in(self) -> FilePath:
|
||||
if self.injectable_base == "":
|
||||
return None
|
||||
return FilePath(PATH_EXES + self.injectable_base)
|
||||
return FilePath(PATH_INJECTABLES + self.injectable_base)
|
||||
|
||||
def get_inject_exe_out(self) -> FilePath:
|
||||
return FilePath("{}{}".format(
|
||||
|
||||
Reference in New Issue
Block a user