Add 64->32 bits pe/peb parsing + stuff in simple_x86/64

This commit is contained in:
Clement Rouault
2015-11-13 09:25:05 +01:00
parent 2523c8e63e
commit ea78f81468
9 changed files with 351 additions and 70 deletions
+5 -3
View File
@@ -157,8 +157,8 @@ class WindowsTestCase(unittest.TestCase):
k32 = mods[0]
get_current_proc_id = k32.pe.exports['GetCurrentProcessId']
# TODO: check get_current_proc_id value (but we cannot do 64->32 injection for now)
if is_process_64_bits:
raise NotImplementedError("Python execution 64->32")
#if is_process_64_bits:
# raise NotImplementedError("Python execution 64->32")
data = calc.virtual_alloc(0x1000)
remote_python_code = """
import ctypes
@@ -232,4 +232,6 @@ class WindowsTestCase(unittest.TestCase):
if __name__ == '__main__':
alltests = unittest.TestSuite()
alltests.addTest(unittest.makeSuite(WindowsTestCase))
unittest.TextTestRunner(verbosity=2).run(alltests)
alltests.debug()
tester = unittest.TextTestRunner(verbosity=2)
tester.run(alltests)