18th International Obfuscated C Code Contest Opens
chongo writes "The 18th International Obfuscated C Code Contest, the Internet's
longest running contest, is now open. The goals,
rules, and guidelines are available. Use the online submission tool to submit your obfuscated C code by 22-May-2005 23:59:59 UTC."
Here are some past winners with "Spoilers" for what they do. It's already pretty slow though and I'm first post.
Webmaster Wanted - Entropic Reactions
Trolling using another account since 2005.
The legacy code I have to work on must be submitted. No body knows how it works and there is no documentation.
~Aha~
Line 20 will never execute unless you return from Hell. Yes, Jesus, I mean you.
Hey, don't bring me into this!
Besides, if Keanu Reeves can do it, anyone can.
DOS C:\DOS C:\DOS\RUN RUN DOS RUN.. Wait... that's C isn't it? God damn it. I'll never win at this rate...
www.tw.ioccc.org - Hsin-Chu, Taiwan
www.au.ioccc.org - Sydney, Australia
www.de.ioccc.org - Frankfurt/Main, Germany
www.es.ioccc.org - Madrid, Spain
www.gr.ioccc.org - Athens, Greece
www0.us.ioccc.org - Sunnyvale California, US
www1.us.ioccc.org - Saint Paul, Minnesota US
is there a similar contest for Perl? I imagine much crazier submissions with Perl than what can be done with C (no offense to C programmers ;))
"You mortals are so obtuse." -Q
Once upon a midnight dreary, gcc compiled, growing weak and weary,
code obfuscated like ne'er seen before.
I could hear a faint grinding,
As the preprocessor went on finding,
it was a noise I could plainly say I abhor.
T'was an executable destined to dump quite a core.
It was a nice sunny day, I remember, in May,
and there lay pizza boxes scattered all o'er the floor.
But because of this Gentoo, I felt I was being sent to
the depths of hell for damnation evermore.
All for a program that would dump its core.
In time, day diminished, and gcc was finished,
and the program was a size worthy of lore,
because of the a.out, my hard drive near ran out,
as the program took up gigabytes galore,
and when I ran it, quoth the output, "I've just dumped a core."
Compile with -fwritable-strings, run, type in a number like 20, find your way out...
,C --Z ]=A,"_.":" |"];}
char*M,A,Z,E=40,J[40],T[40];main(C){for( *J=A=scanf(M="%d",&C);
-- E; J[ E] =T
[E ]= E) printf("._"); for(;(A-=Z=!Z) || (printf("\n|"
) , A = 39
) ; Z || printf (M ))M[Z]=Z[A-(E =A[J-Z])&&!C
& A == T[ A]
|6<<27<rand()||!C&!Z?J[T[E]=T[A]]=E,J[T[A]=A-
If you haven't been there yet, you should check out TheDailyWTF... it's not obfuscated code, but rather unmaintainable code people submit to show what they've been left to deal with at work. Quite interesting, and sometimes as difficult to understand as intentionally obfuscated code.
500GB of disk, 5TB of transfer, $5.95/mo
Full text of rules.txt
You're right, I wouldn't steal a car. But if it were possible, I sure as hell would download one!
"With a little practice, language can become a complete impediment to understanding"
But what's the point? Why expend all that effort on obfuscating code when there are languages with obfuscation already built in?
May your signals all trap
...
May your references be bounded
All memory aligned
Floats to ints rounded
Remember
Non-zero is true
++ adds one
Arrays start with zero
And NULL is for none
For octal, use zero
0x means hex
= will set
== means test
use -> for a pointer
a dot if its not
? : is confusing
use them a lot
a.out is your program
there's no U in foobar
And char (*(*x())[])() is a function returning a pointer to an array of pointers to functions returning char.
Wasn't there some kind of obfuscated vote counting software contest announced before the recent US election? I would like to see some of the entrants into that.
This I love - One guy went and had the first ever entry in the ioccc (from 1984) tattooed on his forearm ...
http://tattoo.thomasscovell.com/index.html
This I also love - the first ever entry was a hello world program!
That entry was the longest one ever made into a tattoo, however there are hundreds of people around the world who have unknowingly had this entry tattoed on their forearm:
http://www.de.ioccc.org/years.html#1994_smr
This is really a great competition - lots of fun, lots to learn. Try understanding how some of the entries work, its really a challenge sometimes, and you can learn plenty about C and the preprocessor.
Like... posting on Slashdot?
a) a contest
b) held via Usenet.
Unproductive labor is bad. Only productive units can be allowed in hive. Workers who waste energy must be sent to the vats. It is therefore in interests of workers to be productive. To conserve energy. To obey.
(This message brought to you by the World Utilitarian Council).
Whence? Hence. Whither? Thither.
As we all know, programming and fun are mutually exclusive. It's completely inconceivable that someone might have, I don't know, a good time writing code.
--
the strongest word is still the word "free"
Yes, they do have this in Perl. It's called programming.
B: Why did the chicken cross the road?
A: Windows sucks!
telnet.c
They certainly achieve their goal of showing how bad caode can be and also of providing a safe forum for amazing C code.
I have also learnt much better how to program in C, even for unobfuscated code. There is nothing like going through some of these entries to understand much better how the preprocessor works, and how compilers react to differrent constructs.
So, the only goal left is that of stressing the C compilers
I actually quite liked Hibachi. And not just for the animated logo! You can even run multiple instances on separate ports, and use NAT and port forwarding to get a poor man's virtual server setup.
I'd recommend you stick to v1.0 {which is actually PD}, for licencing reasons. The v2.8 licence is unnecessarily restrictive.
Je fume. Tu fumes. Nous fûmes!
alternative server at the same domain
We ought to submit the code for WIndows?
Whoosh! I'll explain the scenario:
No one knew the answer to the quiz question. When it became obvious no one was going to respond, Gassée decided to be facetious with that smug we're-better-than-everyone-else 1980s hubris that would later bring "old Apple" to its knees ("we're so cool we don't need to think about modernizing our OS architecture - you'll never be as good as us").
It's hardly surprising Gates had no pity for Apple during the "GUI OS war" and probably relished seeing that smug attitude pounded into the dirt.
And it's very fortunate for Apple that when Jobs returned to save it from bankruptcy, he took a groveling stance towards Gates and told the fanboys, "Microsoft is not the enemy. For Apple to survive, we have to do a really good job." A much better attitude than a smartass remark designed to antagonize an extremely powerful man.
This clearly has no hacker cred what so ever if Visual Studio won't compile it!
(Real men use visual basic!!!!)
Worked beautifully for me using gcc, like so:
gcc -fwritable-strings -o maze maze.c
The only surefire protection against Microsoft infections is abstinence. - The Onion
And she never replied back. Of course she knew programming.
i j%yjf%gjktwj%mjfinsl%mtrj$");putchar(012);dc("Nx%n y%utxxngqj%ytif~D%`~jx4stb%");gets(t);(!strcasecmp (t, "yes"))? ) ; }% ~tz %ktw%wzssnsl%ymnx");
int ec(int c){return c-5;}
void dc(char *s){if(*s){putchar (ec(*s));dc(s+1);}}
int fp();se(f){f&1?fp():f&2?
fp2(): f&4 ? fp3():0;}
fp(){char t[4] = "";dc("N%fr%ytt%ynwji%ytif~33%|fsy%f%ltti%mtrj%rf
se(2):se(4);}
fp2(){char s[21]="";dc("|mfy%ynrj%hfs%N%iwtu%nsD%");gets(s);
dc("N%|nqq%gj%ymjwj%g~%");puts(s);dc("Ymfsp%~tz"
fp3(){dc("N%fr%xt%xfi33333%");dc("Fs~|f~%ymfsp
putchar(012); }
main(){se(1);}
#include std_disclaimer.h
...or did any other web developers get their wires crossed when they read "18th International" and thought this had something to do with "I18N"?
Try this:
Whitespace
It is so obfuscated, you cannot even see it!
"Military Intelligence" an "Microsoft Works" are oxymora. "Dead Corpse" and "Obfuscated C Code" are redundancies. Hope that helps. Have a nice day.^-^
Is this a sigs-optional kind of place? 'Cause I am totally down with that if you know what I mean.