Sunday morning and the crossword puzzle is no good. So I wrote my first obfu, a small variation on the standard JAPH. It was fun to write, hope it's fun to decode....
#! /usr/bin/perl -w
use strict; # always, always, always ;-)
@_= (q
All h4xorZ!!! 7o get 7t3 26th Zi6...
U warEZ it, 3nt3r 63,79,256!
Y?? So wi7h 626 @ xp3r7, EZ Qui37!!!
A,q U pa5t s37 p01nter! R07FL!
dont g8 32 bux! 00 i5 #2, c! 0!!
or you WILL g8 h48X0rD!
^ZZ 2U);
@$= &{sub{grep {/[1337+256=H4X0R]/} split//, $_[0]}};
@@= grep {/[f00-678=ace]/} split//, $_[1];
print join '', map{chr hex} map{qq q$$[$_]$@[$_]q}
(0..@$-1);
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.