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:
@@ -36,7 +36,7 @@ class DataReuseTest(unittest.TestCase):
|
||||
self.assertIsNotNone(hole)
|
||||
|
||||
def test_relocation_list(self):
|
||||
superpe = SuperPe(PATH_EXES + "7z.exe")
|
||||
superpe = SuperPe(PATH_INJECTABLES + "7z.exe")
|
||||
relocs = superpe.get_relocations_for_section(".rdata")
|
||||
self.assertEqual(836, len(relocs))
|
||||
reloc = relocs[0]
|
||||
@@ -48,7 +48,7 @@ class DataReuseTest(unittest.TestCase):
|
||||
|
||||
def test_relocmanager(self):
|
||||
"""Test reference EXE reloc manager information"""
|
||||
superpe = SuperPe(PATH_EXES + "procexp64.exe")
|
||||
superpe = SuperPe(PATH_INJECTABLES + "procexp64.exe")
|
||||
rm = superpe.get_rdata_rangemanager()
|
||||
self.assertEqual(61, len(rm.intervals))
|
||||
# 0x1ab0 is magic currently (should use find_first_utf16_string_offset()
|
||||
@@ -57,7 +57,7 @@ class DataReuseTest(unittest.TestCase):
|
||||
|
||||
|
||||
def test_largestgap(self):
|
||||
superpe = SuperPe(PATH_EXES + "7z.exe")
|
||||
superpe = SuperPe(PATH_INJECTABLES + "7z.exe")
|
||||
rm = superpe.get_rdata_rangemanager()
|
||||
start, stop = rm.find_hole(100)
|
||||
self.assertEqual(394513, start)
|
||||
|
||||
@@ -16,7 +16,7 @@ class DerBackdoorerTest(unittest.TestCase):
|
||||
|
||||
|
||||
def test_function_backdoorer_exe(self):
|
||||
superpe = SuperPe(PATH_EXES + "iattest-full.exe")
|
||||
superpe = SuperPe(PATH_INJECTABLES + "iattest-full.exe")
|
||||
function_backdoorer = FunctionBackdoorer(superpe, depth_option=DEPTH_OPTIONS.LEVEL1)
|
||||
|
||||
addr = function_backdoorer.find_suitable_instruction_addr(superpe.get_entrypoint())
|
||||
@@ -24,7 +24,7 @@ class DerBackdoorerTest(unittest.TestCase):
|
||||
|
||||
|
||||
def test_function_backdoorer_dll(self):
|
||||
superpe = SuperPe(PATH_EXES + "TestDLL.dll")
|
||||
superpe = SuperPe(PATH_INJECTABLES + "TestDLL.dll")
|
||||
function_backdoorer = FunctionBackdoorer(superpe)
|
||||
|
||||
addr = function_backdoorer.find_suitable_instruction_addr(superpe.get_entrypoint())
|
||||
|
||||
@@ -10,7 +10,7 @@ from pe.dllresolver import *
|
||||
class DllResolverTest(unittest.TestCase):
|
||||
|
||||
def test_dllresolver(self):
|
||||
filename = "data/binary/exes/7z.exe"
|
||||
filename = "data/binary/injectables/7z.exe"
|
||||
superpe = SuperPe(filename)
|
||||
|
||||
self.assertTrue(all_dll_exist(superpe))
|
||||
|
||||
@@ -9,7 +9,7 @@ from pe.superpe import SuperPe, PeSection
|
||||
class SuperPeTest(unittest.TestCase):
|
||||
|
||||
def test_exe(self):
|
||||
dll_filepath = PATH_EXES + "procexp64.exe"
|
||||
dll_filepath = PATH_INJECTABLES + "procexp64.exe"
|
||||
superpe = SuperPe(dll_filepath)
|
||||
|
||||
# Properties
|
||||
@@ -70,7 +70,7 @@ class SuperPeTest(unittest.TestCase):
|
||||
|
||||
|
||||
def test_dll(self):
|
||||
dll_filepath = PATH_EXES + "TestDLL.dll"
|
||||
dll_filepath = PATH_INJECTABLES + "TestDLL.dll"
|
||||
superpe = SuperPe(dll_filepath)
|
||||
|
||||
# Properties
|
||||
|
||||
Reference in New Issue
Block a user