CrashBandicot

First Shellcode

May 14th, 2014
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. /*
  4. tested on BackTrack 5 R3
  5. first shellcode by karim from TeaM MosTa
  6. debuting :)
  7. */
  8.  
  9. int main()
  10. {
  11.     char shellcode[] = "\x31\xc0\x31\xdb\x31\xd2\x31\xc9\xb0\x04\xb3\x01\x6a\x0a\x68\x61\x72\x69\x6d\x6a\x6b\x89\xe1\xb2\x09\xcd\x80\xb0\x01\x31\xdb\xcd\x80";  
  12.  
  13.  
  14.     printf("[+]size of ShellC0de : %d\n\n", sizeof(shellcode)-1 );
  15.     (*(void(*)()) shellcode)();
  16.      
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment