Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void PrintPEB()
- {
- PEB *peb = 0;
- __asm
- {
- xor ebx, ebx
- mov ebx, fs:[0x30]
- mov peb, ebx
- }
- PLIST_ENTRY start = peb->Ldr->InMemoryOrderModuleList.Blink;
- PLIST_ENTRY curr = peb->Ldr->InMemoryOrderModuleList.Flink;
- do
- {
- PLDR_DATA_TABLE_ENTRY c = (PLDR_DATA_TABLE_ENTRY)curr;
- wprintf(L"%s: 0x%.8X\n", c->FullDllName.Buffer, curr);
- curr = curr->Flink;
- }
- while(curr != start);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement