Hi Monks,

The code below is generated by a mindfcuk interpreter (Cal Henderson). All I know of the code is that it prints "Username:" and then waits for the user to input a string. It's looking for a specific string or username. If a wrong one is entered, it prints "Wrong!". If a right one - ah, that's the one I'm figuring out.

Could someone help me to figure out what the required string is or how to understand what's going after the part that print "Username:"

$p+=1; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=8; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=5; print chr$m[$p]; $p+=1; $m[$p]+=6; while($m[$p]){ $p-=1; $m[$p]+=5; $p+=1; $m[$p]-=1; } $p-=1; print chr$m[$p]; $p+=1; $m[$p]+=2; while($m[$p]){ $p-=1; $m[$p]-=7; $p+=1; $m[$p]-=1; } $p-=1; print chr$m[$p]; $p+=1; $m[$p]+=3; while($m[$p]){ $p-=1; $m[$p]+=4; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=1; print chr$m[$p]; $m[$p]-=4; print chr$m[$p]; $p+=1; $m[$p]+=3; while($m[$p]){ $p-=1; $m[$p]-=4; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]-=1; print chr$m[$p]; $p+=1; $m[$p]+=3; while($m[$p]){ $p-=1; $m[$p]+=4; $p+=1; $m[$p]-=1; } $p-=1; print chr$m[$p]; $p+=1; $m[$p]+=2; while($m[$p]){ $p-=1; $m[$p]-=4; $p+=1; $m[$p]-=1; } $p-=1; print chr$m[$p]; $p+=1; $m[$p]+=4; while($m[$p]){ $p-=1; $m[$p]-=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]-=3; print chr$m[$p]; $p+=1; $m[$p]+=4; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=2; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=8; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=1; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=5; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=3; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } # Stop here $p-=1; $m[$p]-=7; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=3; $p+=1; $m[$p]=ord getc; print chr$m[$p]; $m[$p]+=2; $p+=1; $m[$p]=ord getc; print chr$m[$p]; $p+=1; $m[$p]=ord getc; print chr$m[$p]; $p+=1; $m[$p]=ord getc; print chr$m[$p]; $m[$p]-=4; $p+=1; $m[$p]=ord getc; print chr$m[$p]; $p+=3; $m[$p]+=8; while($m[$p]){ $p-=1; $m[$p]+=4; $p+=1; $m[$p]-=1; } $p-=1; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=9; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]-=3; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=4; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=1; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=3; $p+=2; $m[$p]+=6; while($m[$p]){ $p-=1; $m[$p]+=5; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=3; $p+=1; $m[$p]+=1; $p+=2; $m[$p]+=8; while($m[$p]){ $p-=1; $m[$p]+=4; $p+=1; $m[$p]-=1; } $p-=1; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=7; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]-=3; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=1; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=4; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=4; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=1; $p+=2; $m[$p]+=10; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]-=1; $p+=2; $m[$p]+=11; while($m[$p]){ $p-=1; $m[$p]+=10; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=6; $p+=2; $m[$p]+=6; while($m[$p]){ $p-=1; $m[$p]+=5; $p+=1; $m[$p]-=1; } $p-=1; $m[$p]+=3; $p-=22; while($m[$p]){ $p-=5; $m[$p]-=1; $p+=5; $m[$p]-=1; } $p-=5; while($m[$p]){ $p+=10; $m[$p]+=1; $p-=10; while($m[$p]){ $m[$p]-=1; } } $p+=6; $m[$p]-=1; while($m[$p]){ $p-=5; $m[$p]-=1; $p+=5; $m[$p]-=1; } $p-=5; while($m[$p]){ $p+=9; $m[$p]+=1; $p-=9; while($m[$p]){ $m[$p]-=1; } } $p+=6; $m[$p]+=2; while($m[$p]){ $p-=5; $m[$p]-=1; $p+=5; $m[$p]-=1; } $p-=5; while($m[$p]){ $p+=8; $m[$p]+=1; $p-=8; while($m[$p]){ $m[$p]-=1; } } $p+=6; while($m[$p]){ $p-=5; $m[$p]-=1; $p+=5; $m[$p]-=1; } $p-=5; while($m[$p]){ $p+=7; $m[$p]+=1; $p-=7; while($m[$p]){ $m[$p]-=1; } } $p+=6; $m[$p]+=5; while($m[$p]){ $p-=5; $m[$p]-=1; $p+=5; $m[$p]-=1; } $p-=5; while($m[$p]){ $p+=6; $m[$p]+=1; $p-=6; while($m[$p]){ $m[$p]-=1; } } $p+=6; while($m[$p]){ $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; $m[$p]-=1; $p-=8; while($m[$p]){ $m[$p]-=1; } } $p+=8; while($m[$p]){ $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p+=1; print chr$m[$p]; $p-=9; while($m[$p]){ $m[$p]-=1; } }

In reply to Output of mindfcuk by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.