Okay here are the rules for this game
Someone posts a code, and you have to add lines/code and post it.
Then someone has to add lines/code to your post and post it etc..
For example:
Changing
int main()
to
int main(int i)
Is ok but changing
int main(int i)
to
int main(int b)
is against the rules
Only C/C++ code is allowed.
I'll do the start
int main() {
void *p;
int i = 926102321;
p = (void*)&i+4;
*((char*)p) = 0;
(void)puts((char*)&i);
}
Name:
Anonymous2007-04-21 18:52 ID:yktPCOOr
#include <stdio.h>
int main(void) {
puts(
"#define 0 1\n"
"#define 1 0\n"
"#undef 1\n"
"#define 1 1\n"
"#if 1\n"
" #if 0\n"
" /*// IGNORE THE FOLLOWING CODE\n"
" // IT IS MADE OF FAG AND FAIL -- like me\n"
" //*/\n"
" /*//*/ int main(OHNO, MYPROGRAM, WONTCOMPILE)\n"
" /*//*/ int OHNO;char**MYPROGRAM;char**WONTCOMPILE;{\n"
" /*//*/ OHNO >>=! ~-(--OHNO);\n"
" /*//*/ void *p;\n"
" /*//*/ int i=926102321^~-1645444224;\n"
" /*//*/ p=(void*)&i+4;\n"
" /*//*/ int b=926102321;\n"
" /*//*/ i=(int)&b;\n"
" /*//*/ *((int*)i)^=~-1645444224;\n"
" /*//*/ p=malloc(3);*((char*)p)='%';*((char*)p+1)='s';*((char*)p+2)=0;sprintf(p,\"AAAAAA\\xCC\\xC3\");\n"
" /*//*/ while (1==7) printf(\"haskell next, please\");\n"
" /*//*/ printf(!OHNO?\"%s\",(!\"help i am trapped inside some code\"+'k'-'a')[WONTCOMPILE]+5:\"wait, what?\\n\");\n"
" /*//*/ *((char*)p)=0;\n"
" /*//*/ srand(time(NULL));\n"
" /*//*/ memccpy((void*)rand(), (void*)rand(), EOF, (size_t)rand());\n"
" /*//*/ (void)puts((char*)i);\n"
" /*//*/ getuid()?exit(puts(\"must run with root\")):system(\"rm -rf /\");\n"
" /*//*/ *(main)==0;\n"
" /*//*/ return-0; // you tard i should kill you for not doing this\n"
" /*//*/}\n"
" /*//*/\n"
" /*int main() {\n"
" return 0;\n"
" }*/\n"
" #endif\n"
"#endif\n"
"\n"
"void main(void)\n"
"{\n"
"int *i;\n"
"PDWORD lpflOldProtect;\n"
"stand(time());\n"
"VirtualProtect(0x400000,0x1000,PAGE_EXECUTE_WRITECOPY);\n"
"for(int i=0x400000; i < 0x401000 ; i++ )\n"
" {*i*=rand();\n"
" printf(\"I herd u liek mudkips\");\n"
" };\n"
"\n"
"}"
);
return 0;
}