diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-09-05 21:06:56 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2016-09-06 08:39:15 +0200 |
| commit | 180ef6b0ed3561e3d770b80d6cc79c4f77941cd6 (patch) | |
| tree | c82a3080f049c838006755da6fdab5aaca9feab5 | |
| parent | 7292f447aa70dd6047ad2297d09993418edf19c8 (diff) | |
| download | miasm-180ef6b0ed3561e3d770b80d6cc79c4f77941cd6.tar.gz miasm-180ef6b0ed3561e3d770b80d6cc79c4f77941cd6.zip | |
Jitter/win: clean
| -rw-r--r-- | miasm2/os_dep/win_api_x86_32_seh.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/miasm2/os_dep/win_api_x86_32_seh.py b/miasm2/os_dep/win_api_x86_32_seh.py index 784e862b..3b2fdfaa 100644 --- a/miasm2/os_dep/win_api_x86_32_seh.py +++ b/miasm2/os_dep/win_api_x86_32_seh.py @@ -185,33 +185,6 @@ def build_ldr_data(jitter, modules_info): LdrDataEntry.get_type().get_offset("InInitializationOrderLinks") ldrdata.InInitializationOrderModuleList.blink = 0 - # data += pck32(ntdll_addr_entry + 0x10) + pck32(0) # XXX TODO fix blink - - """ - # get main pe info - main_pe = modules_info.name2module.get(main_pe_name, None) - if not main_pe: - log.warn('No main pe, ldr data will be unconsistant') - offset, data = offset + 8, "" - else: - main_addr_entry = modules_info.module2entry[main_pe] - log.info('Ldr %x', main_addr_entry) - data = pck32(main_addr_entry) + pck32(0) - data += pck32(main_addr_entry + 0x8) + pck32(0) # XXX TODO fix blink - - ntdll_pe = modules_info.name2module.get("ntdll.dll", None) - if not ntdll_pe: - log.warn('No ntdll, ldr data will be unconsistant') - else: - ntdll_addr_entry = modules_info.module2entry[ntdll_pe] - data += pck32(ntdll_addr_entry + 0x10) + pck32(0) # XXX TODO fix blink - - if data: - jitter.vm.add_memory_page(offset, PAGE_READ | PAGE_WRITE, - data, - "Loader struct") - """ - # Add dummy dll base jitter.vm.add_memory_page(peb_ldr_data_address + 0x24, PAGE_READ | PAGE_WRITE, pck32(0), |