Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. char shellcode[]="0x31\0xc0\0x50\0x68\0x6e\0x2f\0x73\0x68\0x68\0x2f\0x2f\0x62\0x69\0x89\0xe3\0x31\0xd2\0x52\0x53\0x89\0xe1\0xb0\0x0b\0xcd\0x80";
  5.  
  6. int main(int argc, char *argv[]){
  7.  
  8.   int (*run)();  
  9.   run = shellcode;
  10.   run();  
  11.  
  12. }
  13.  
  14. //errores shell.c: In function ‘main’:
  15. //shell.c:9: warning: assignment from incompatible pointer type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement