#include #include #include #include #include #include #include int main(){ int i = 1; FILE *f; char *buff, *p, *q; char *fmt = "\xc0\x81\xc5\x87\x8a\x91\x91\x89\x80\x96\xc5\x8a\x83\xc5\x87\x80\x80\x97\xc5\x8a\x8b\xc5\x91\x8d\x80\xc5\x92\x84\x89\x89\xef"; /* "%d bottles of beer on the wall\n"; Beer is allowed, although hard liquor is not */ if( (f=fopen("/dev/null", "w")) == NULL ){ perror("No /dev/null for you!\n"); exit(1); } buff = malloc( strlen(fmt) + 20 ); memset(buff, '\0', strlen(fmt) + 20 ); /* Hey, "encryption" ! */ p = fmt; q = buff; while( *p ) *q++ = *p++ ^ (char) 0xe5; while(1){ fprintf(f, buff, ++i); sleep(1); /* Can't drink all that beer so fast! That'd be unhealthy. */ } }