| Forum |
|
|||||||
| Programming The destination for developers - C, C++, Java, Python and the lot |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Right Off the Assembly Line
Join Date: Mar 2005
Posts: 42
|
#include<stdio.h> main() { int a,b,c; int count = 1; for (b=c=10;a= "- LLLLLL?, LMKC,XYZHELLO FOLKS,\ TFy!QJu ROo TNn(ROo)SLq SLq ULo+\ UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\ NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\ HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\ T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\ Hq!WFs XDt!" [b+++21]; ) for(; a-- > 64 ; ) putchar ( ++c=='Z' ? c = c/ 9:33^b&1); } It somehow manages to print map of India i feel a prog has be used to generate this code ...can nybody tell does such program exists for converting a simple logic into a cryptic form |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#4 (permalink) |
|
s,b+..u cn..
Join Date: Dec 2006
Posts: 76
|
u may get answer 4m www.programmersheaven.com .....i dnt know certainly u wil b getting it or not but try.....i wil also look 4 it.....
|
|
|
|
|
#5 (permalink) | |
|
Human Spambot
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
|
Quote:
But a is declared as an int. So it can store 2 bytes of data. Instead of that, it is stuffed with so many characters. Additionally, the second part in the for() loop is the condition. So there should "a==..." instead of that there is a single =. So it is an assignement and not a condition. b and c are declared immediately after a. So most likely they will occupy next 4 bytes after a. But a is stuffed with these characters. First 2 characters are accessible with a, next two with b and next 2 with c. Even count will have characters from the same string. This is cryptic programming. My (rusted) knowledge of C isn't so good that I would understand this. But these are just a few observations. I have heard that there used to be competitions held for cryptic C programming. C is endless.
__________________
:: Free hosting and free domain names available in special cases. Conditions apply :: |
|
|
|
|
|
#7 (permalink) | |
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 566
|
Quote:
They are generally unreadable but executable. Wiki details out Obfuscated Code. There are software available that can obfuscate any c code. Just google it and you will find lots of obfuscator tools for C, Java, etc. |
|
|
|
|
|
#8 (permalink) | |
|
D i s t i n c t l y Ahead
Join Date: Sep 2006
Location: New delhi
Posts: 494
|
Quote:
|
|
|
|
|
|
#9 (permalink) |
|
Alpha Geek
Join Date: Sep 2007
Location: hassan
Posts: 714
|
me too
__________________
☼ onlyfreewares.info ► Onlyfreewares...Nothing Else !! ☼ regtweak.info ► Windows Registry hacks and tricks ☼ blog.aditech.info ► There is something for everyone |
|
|
|
|
#10 (permalink) |
|
Console Freak
Join Date: Jun 2006
Location: Sangli-Maharashtra
Posts: 991
|
Search for obfuscated c code in google. Even looking at the winning programs gives you a headache.
__________________
I have launched my blog and I am looking forward to link exchange. If you can then please add my blog link your blogroll and let me know then I can do the same. http://blog.adityashevade.com |
|
|
|
|
#11 (permalink) |
|
Pawned!... Beyond GODLIKE
Join Date: May 2006
Location: World Of Warcraft -DOTA
Posts: 1,003
|
how do get such ideas
cant any1 explain that india map program. also first [B]for[\B] loop in that prog contains only two expression instead of for(exp1;exp2;exp3)
__________________
If God has indeed created Himself in His own image, then I submit to you that God is a cockroach |
|
|
|
|
#12 (permalink) |
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,657
|
^^
For can be used without initialization and counter expressions for( ; condition ; ) is valid as you can place the initialization outside and counter inside the loop if you have to. Removing the condition makes it infinite loop until break. |
|
|
|
|
#14 (permalink) |
|
Pawned!... Beyond GODLIKE
Join Date: May 2006
Location: World Of Warcraft -DOTA
Posts: 1,003
|
yeah i know that.we can even use like for(;
__________________
If God has indeed created Himself in His own image, then I submit to you that God is a cockroach |
|
|
|
|
#16 (permalink) | |
|
In The Zone
Join Date: Nov 2005
Location: Bangalore
Posts: 486
|
Quote:
@purifirer where did u get tis from man????
__________________
eXPerience is what a MAN learn's fROM..... Last edited by ayush_chh; 27-10-2007 at 07:24 PM. Reason: Automerged Doublepost |
|
|
|
|
|
#17 (permalink) | |
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 566
|
^^ Check this link for more obfuscated codes.
This link is of International Obfuscated C code contest. Enjoy Quote:
There are obfuscated code generators which take your normal programs as input and produce obfuscated code. Last edited by sachin_kothari; 27-10-2007 at 08:47 PM. Reason: Automerged Doublepost |
|
|
|
|
|
#19 (permalink) |
|
Alpha Geek
Join Date: Dec 2004
Location: Pune
Posts: 566
|
These codes can be reversed engineered only if the technique used by the obfuscator is known.
There are some well know obfuscation techniques like > Layout obfuscations - modify the layout structure of the program by two basic methods: renaming identifiers and removing debugging information. They make the program code less informative to a reverse engineer. Most layout obfuscations cannot be undone because they use one-way functions such as changing identifiers by random symbols and removing comments, unused methods, and debugging information. Though layout obfuscations cannot prevent reverse engineers to understand the program by observing the obfuscated code, they at least consume the cost of reverse engineering. Layout obfuscations are the most well studied and widely used in code obfuscation. Almost all Java obfuscators contain this technique. |> Control obfuscations - change the control flow of the program. The trick is simple: For a routine A() obfuscator creates an additional routine A_bug and an "if" selector, if (PREDICATE) then A_bug(); else A();. The PREDICATE is designed on-the-fly in that way so it is always false (but it's made so it's hard to conclude that fact), and the A() routine is always selected instead of a buggy copy A_bug(). |> Data obfuscations - break the data structures used in the program and encrypt literals. This method includes modifying inheritance relations, restructuring arrays, etc. Data obfuscations thoroughly change the data structure of a program. They make the obfuscated codes so complicated that it is impossible to recreate the original source code. Source |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|