/* Only for UNIX systems - not for *BSD - Stampa il Messaggio "NoRpiUs r0x" */
main()
{
char shellcode[] =
"\xeb\x22" /* jmp 0x804833c <main+48> */
"\x5e" /* pop %esi */
"\x31\xc9" /* xor %ecx,%ecx */
"\x31\xc0" /* xor %eax,%eax */
"\x31\xd2" /* xor %ebx,%ebx */
"\x31\xdb" /* xor %edx,%edx */
"\x83\xc2\x0c" /* add $0xc,%edx */
"\x89\xf1" /* mov %esi,%ecx */
"\x43" /* inc %ebx */
"\x40" /* inc %eax */
"\x83\xf8\x04" /* cmp $0x4,%eax */
"\x0f\x85\xf6\xff\xff\xff" /* jne 0x8048330 <main+36> */
"\xcd\x80" /* int $0x80 */
"\x31\xdb" /* xor %ebx,%ebx */
"\x31\xc0" /* xor %eax,%eax */
"\x40" /* inc %eax */
"\xcd\x80" /* int $0x80 */
"\xe8\xd9\xff\xff\xff" /* call 0x8048321 <main+21> */
"\x4E\x6F\x52\x70\x69\x55\x73" /* "NoRpiUs" */
"\x20\x72\x30\x78" /* " r0x" */
"\x0a\x0d"; /* line feed + curriage return */
int (*funct)();
funct = (int (*)())shellcode;
(int)(*funct)();
}
|