[bitlug] Re: Obfuscated, true, but can anyone crack it?

  • From: Peeyush Prasad <peeyush@xxxxxxxxxx>
  • To: "Bitlug (E-mail)" <bitlug@xxxxxxxxxxxxx>
  • Date: Mon, 16 Aug 2004 18:34:50 +0530 (IST)

> With August 15 coming up, this might look good.
> Try out this program. Can somebody can crack it and reason out the
> output?

you bad boy! made me waste almost 40 minutes of my time!
I expected a message of some sort,specially when I saw the 'Hello
Folks'...
 When I saw the '!'s coming, I thought it's some boundary etc...
ran outa patience and just ran the prog..
 of course, since the var 'a' was in the condition part of the outer loop,
it keeps getting the const string values,starting from offset 31 {b++ +
21), when b is init to 10).
 What I should have noticed (I did find it funny) was the 33^(b&1), since
b&1 is either 0 or 1,that part is always 32 (' ') or 33 ('!').Also, the
c/=9 started giving only 10('\n'), that's when I lost it!
 What would be more interesting is if one could come up with a string for
the a="" part which would give us,say simple geometrical figures... its
only controlling the spaces and the \ns...
 it does look good anyways...
-- P

On Thu, 12 Aug 2004, Turuvanur Pavan-A20404 wrote:

> Hi all,
>
>
> #include <stdio.h>
> main()
> {
> int a,b,c;
> int count = 1;
> for (b=c=10;a="- FIGURE?, UMKC,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);
> return 0;
> }
>
> TC
>


Other related posts: