refactor: move directories around 1/2

This commit is contained in:
Dobin
2024-03-29 18:02:16 +00:00
parent 0296537ec5
commit a6dbbe69ac
14 changed files with 103 additions and 180 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ logger = logging.getLogger("Injector")
def inject_exe(
main_shc_file: FilePath,
main_shc_path: FilePath,
settings: Settings,
project: Project,
):
@@ -32,7 +32,7 @@ def inject_exe(
# Read prepared loader shellcode
# And check if it fits into the target code section
main_shc = file_readall_binary(main_shc_file)
main_shc = file_readall_binary(main_shc_path)
l = len(main_shc)
if l + 128 > project.exe_host.code_section.Misc_VirtualSize:
logger.error("Error: Shellcode {}+128 too small for target code section {}".format(