Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void remote_listmodules(HANDLE proc, void *_peb)
- {
- void *peb;
- if (_peb == NULL) return;
- else peb = _peb;
- void *ldr = *((void**)((unsigned char*)peb + 0x0C));
- void *flink = *((void**)((unsigned char*)ldr + 0x14));
- void *cmod = flink;
- void *_BaseAddress = 0;
- void *_BaseDllName = 0;
- void *modulebase = 0;
- do
- {
- _BaseAddress = *((void**)((unsigned char*)cmod + 0x10));
- _BaseDllName = *((void**)((unsigned char*)cmod + 0x28));
- if (_BaseAddress != 0)
- wprintf(L"%s @ 0x%X\n", (WCHAR*)_BaseDllName, (ULONG)_BaseAddress);
- cmod = *((void**)cmod);
- } while (flink != cmod);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement