Skip to content

Instantly share code, notes, and snippets.

@evernick
Created June 18, 2015 09:16
Show Gist options
  • Save evernick/c9c3edf3abc0ec096b48 to your computer and use it in GitHub Desktop.
Save evernick/c9c3edf3abc0ec096b48 to your computer and use it in GitHub Desktop.
#include <windows.h>
#include <stdio.h>
int main(int argc, char **argv)
{
unsigned long *p;
__asm
{
mov eax, fs:[0x30]
mov p, eax
}
printf("PEB Address Is : %p\n", p);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment