The All-Thing

All carrot and no stick, since ought-three.

與諸子登峴山 (孟浩然)


| web page

Other views:
RSS 0.92
RSS 1.0 (broken)

Past posts:

Sun Mon Tue Wed Thu Fri Sat

Recent comments:
/misc/korea2 (5 days ago)

Recent search referers:
"named entity tagger"
a girl thing bittorrent
x300 linux
"bittorrent xbox"
gateway 200x review
Terence this is stupid stuff A.E. Housman meaning
bittorrent debbie does dallas 80's
pr0n bittorrent
XP Smoker
bittorrent pr0n (x3)
reviews dell x300
"lone wolf and cub" "bittorrent" "movie"
Dell X300
chubby guy
BitTorrent english
BitTorrent pr0n


Creative Commons License
This work is licensed under a Creative Commons License.

Fri, 06 Jun 2003

Perl Obfuscation

Writing code to generate more code really turns me on. I wrote an obfuscated Perl code producer (in Perl of course) a few weeks ago based on a trick I found somewhere on the web. Unfortunately I forget where I found the trick, but it's pretty neat and took me a while to understand.

Here is some sample output:

 '?( {(@@.}('=~('(?{'.('+/)@[@|);##_]*@@=^*|'^'[]@./`^A^OO0}^(%O; ^').'})')

This example just prints a string, but in principle could execute an arbitrary set of Perl commands. Neat eh? Perl as a decryption engine.

(You'll need to pass this in to perl directly; using –e typically won't work because the shell will interpret the single quotes.)

Posted at 10:51 | /code | (leave a comment) | permalink


Always the dullness of the fool is the whetstone of the wits. -- William Shakespeare, "As You Like It"