IAT hooking
#include <windows.h>
int main() {
return MessageBoxW(NULL, L"Hello World", L"PENTEST WIKI", 0);
}


Last updated
#include <windows.h>
int main() {
return MessageBoxW(NULL, L"Hello World", L"PENTEST WIKI", 0);
}


Last updated
0:000> !dh IAT_Hooking
File Type: EXECUTABLE IMAGE
[...]
00007ff686e10000 image base
1000 section alignment
[...]
0 [ 0] address [size] of Bound Import Directory
20000 [ 3F0] address [size] of Import Address Table Directory0:000> dps 00007ff686e30000 00007ff686e303F0
00007ff6`86e30000 00007ffb`09fba9a0 ntdll!RtlAllocateHeap
[...]
00007ff6`86e30148 00000000`00000000
00007ff6`86e30150 00007ffb`09b1c760 USER32!MessageBoxW