Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. char calc[] =
  5. "\xeb\x16\x5b\x31\xc0\x50\x53\xbb\x8d\x15\x86\x7c\xff\xd3\x31\xc0"
  6. "\x50\xbb\xea\xcd\x81\x7c\xff\xd3\xe8\xe5\xff\xff\xff\x63\x61\x6c"
  7. "\x63\x2e\x65\x78\x65\x00";
  8.  
  9. int main()
  10. {
  11.     int (*shellcode)(r);
  12.     shellcode = (int (*)()) calc;
  13.     (int)(*shellcode)();
  14.     return 0;
  15. }
  16.  
  17.  
  18. Program received signal SIGSEGV, Segmentation fault.
  19. In KERNEL32!DosPathToSessionPathA () (C:\WINDOWS\system32\kernel32.dll)
  20. Continuing...
  21. Program received signal SIGSEGV, Segmentation fault.
  22. In KERNEL32!DosPathToSessionPathA () (C:\WINDOWS\system32\kernel32.dll)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement