Hey all,
Inspired by Petras I thought I'd try my hand at my very first obfu. Only when I was happily hacking away did i realize this code won't do the same on windows due to the CR-LF play that goes around. It does work on windows, though just not as fancy.
#!/usr/bin/perl -w
use strict;$|++;$_=<DATA>;y,a-zA-Z,a-hA-N i-qO-Zr-z,,my @i=split//;pri
+nt chr(10).chr(13);my @o=("A");my $c=65;select(undef,undef,undef,0.01
+),$o[$#o+1]=chr(++$c),print chr(8).$o[$#o-1].chr(8)for(0..$#i);print
+chr(10).chr(13);for my$c(0..$#i){my($e,$d)=(0,$c);select(undef,undef,
+undef,$e),$e=($#o/($#o-$c+1))*0.010,$o[$d]=($c/++$d%2)?chr(ord($o[$d+
+1])):$o[$d],print chr(8).$o[$d].chr(8)for($c..$#i);print$i[$c].chr(10
+);}__DATA__
!rVTUwiCDUheSwHeSAwpaczeS!
Have fun,
Deliria.
Update: I altered the original somewhat so it works properly on windows (and apparently some terminal screens) as well.
#!/usr/bin/perl -w
use strict;$|++;$_=<DATA>,y,0-9A-Za-z,G-PzA-B{($_)}="@ ;3r-yC-F81a-q,;
+sub _{chr(8)x shift};sub _1{print@_};my@i=split//;my($u,@o)=(undef
,("A"));select($u,$u,$u,0.01),$o[$#o+1]=chr(66+$#o),_1 $o[$#o-1]for(0.
+.$#i);_1 _$#o+1;for my$c(0..$#i){my($e,$d)=(0,$c);$e=($#o/($#o-$c+
1))*0.010,select($u,$u,$u,$e),$o[$d]=($c/++$d%2)?$o[$d+1]:$o[$d],_1 $o
+[$d]for($c..$#i);_1 _(1),$i[$c],_ $#o+1 }_1 "\n"__DATA__
!Phnfd1MoPh9MPhkRrqBMRQS3!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.