GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Rep:
C programming puzzle
Coolin' down from all the flame wars about making good code, its time to test how somone is at decoing bad code:
can you tell what this does without running it:
That's pretty cool, I actually went through it line by line. Awhile ago I stumbled across a single file that was, a bash program, a Makefile, and C source code, all with very tricky comment notation so that if you made the file executable, you could like run it 3 times and compile and run a C program. That was probably the craziest obfuscation I've seen in code. Can't find it now, but it was really interesting.
No, it's just that I've seen enough obfuscated "Hello, World!" programs to recognize the ASCII codes for the letters, and with the little "subtract one from every other character", that accounts for the simple mutations in the codes.
My favorite obfuscated program is the one with three lines of mostly parentheses, that when you run it it prints out a naked woman showing her poonanners to the whole world.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339
Original Poster
Rep:
Quote:
Originally Posted by mjones490
My favorite obfuscated program is the one with three lines of mostly parentheses, that when you run it it prints out a naked woman showing her poonanners to the whole world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.