Skip to content

Commit 147ec7c

Browse files
committed
Make Windows compatible to latest image
1 parent a82abfd commit 147ec7c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

qiling/loader/pe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ def init_imports(self, pe: pefile.PE, is_driver: bool):
644644

645645
# DLLs that seem to contain most of the requested symbols
646646
key_dlls = (
647+
'kernel32.dll',
647648
'ntdll.dll',
648649
'kernelbase.dll',
649650
'ucrtbase.dll'

tests/test_pe_sys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ def hook_third_stop_address(ql: Qiling, stops: List[bool]):
219219
fcall.writeParams(((DWORD, 0),))
220220

221221
# run until third stop
222-
# TODO: Should stop at 0x10423, but for now just stop at 0x0001066a
223-
amsint32.hook_address(hook_third_stop_address, 0x0001066a, stops)
222+
# TODO: Should stop at 0x10423, but for now just stop at 0x10430
223+
amsint32.hook_address(hook_third_stop_address, 0x10430, stops)
224224
amsint32.run(begin=0x102D0)
225225

226226
self.assertTrue(stops[0])

0 commit comments

Comments
 (0)