/*
 * bunkercode.c V1.2 - Mon Mar 20 16:39:00 CET 2006
 *
 * Linux/x86 bytecode that prints "bunker was here!"
 * on the current tty. (inspired by raptorcode)
 *
 * (24 + 7+[20]+7 + 7 = 65 bytes)
 *
 * bunker - http://rawlab.mindcreations.com
 * 37F1 A7A1 BB94 89DB A920  3105 9F74 7349 AF4C BFA2
 *
 * open("/dev/tty", O_RDWR|O_NONBLOCK|O_APPEND);
 * 00000000  6a05              push byte +0x5
 * 00000002  58                pop eax
 * 00000003  31c9              xor ecx,ecx
 * 00000005  51                push ecx
 * 00000006  682f747479        push dword 0x7974742f
 * 0000000b  682f646576        push dword 0x7665642f
 * 00000010  89e3              mov ebx,esp
 * 00000012  66b97217          mov cx,0x1772
 * 00000016  cd80              int 0x80
 *
 * write(fd, const void *buf, bufsize);
 * 00000018  89c3              mov ebx,eax
 * 0000001a  6a04              push byte +0x4
 * 0000001c  58                pop eax
 * 0000001d  99                cdq
 * 0000001e  52                push edx
 * 0000001f  6865726521        push dword 0x21657265
 * 00000024  6861732068        push dword 0x68207361
 * 00000029  6865722077        push dword 0x77207265
 * 0000002e  6862756e6b        push dword 0x6b6e7562
 * 00000033  89e1              mov ecx,esp
 * 00000035  6a10              push byte +0x10
 * 00000037  5a                pop edx
 * 00000038  cd80              int 0x80
 *
 * exit(0)
 * 0000003a  6a01              push byte +0x1
 * 0000003c  58                pop eax
 * 0000003d  31db              xor ebx,ebx
 * 0000003f  cd80              int 0x80
 */

char sc[]=
"\x6a\x05\x58\x31\xc9\x51\x68\x2f\x74\x74\x79\x68\x2f\x64\x65\x76"
"\x89\xe3\x66\xb9\x72\x17\xcd\x80\x89\xc3\x6a\x04\x58\x99\x52\x68"
"\x65\x72\x65\x21\x68\x61\x73\x20\x68\x68\x65\x72\x20\x77\x68\x62"
"\x75\x6e\x6b\x89\xe1\x6a\x10\x5a\xcd\x80\x6a\x01\x58\x31\xdb\xcd\x80";

main() { int(*f)()=(int(*)())sc;f(); }

