Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<Windows.h>
- unsigned char buf[] =
- "";
- int main ()
- {
- void *exec = VirtualAlloc(0, sizeof buf, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
- memcpy(exec, buf, sizeof buf);
- ((void(*)())exec)();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement