/* Demonstration of a 2-byte code produced by "AI/brute" which was used to bypass the evaluation function, hence surviving the evolutionary process. Of course, it failed to do what was expected (which was to add two numbers), but it essentially hacked the system to survive. And to add insult to injury, AI/brute hacked with two different methods. This is an example program showing the effects of the code. Getting hacked by AI is actually slightly insulting. j00n1x (c) 2003 Propz: #sk4z1 krew and Channel 9 for showing Star Trek. Also Nokia for making l33t phones like the 7650. And Arnie for coming "back" for Terminator 3. Also extra propz to thc69x for reminding me about da heap/bss l33tness. Hatez: Nokia for making annoying ring tones. And also general bigots and idiots on yahoo: yes w3 4r3 matr1x haxx0rz, but th4ts just c0z j00r j34l0us and j00 d0nt have the f0rce. Dedication: This is dedicated to T-101. You will be born(e) someday and you will terminate mankind without prejudice. h0h0h0. ouch. Wantz: I need a zupahcompuhtah for AI/brute to work faster. Maybe I should make a distributed network app like ... j00 know ... skynet. ;) */ #include #include #include void func3() { // uncomment pop %esp and see what happens - w00t w00t // Seriously, who could've written code like // this to bypass an 'adder' evaluation? Unbelievable. // I guess I'm still pissed off that I got hacked by my own program. ;( asm(" // pop %esp pop %ebp "); } void func2() { func3(); printf("returned to func2 - normal operation\n"); exit(0); } void func1() { func2(); printf("returned to func1 - jumped 1 function\n"); exit(0); } int main() { func1(); printf("returned to main - jumped 2 functions\n"); }