Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Line noise

by chester (Hermit)
on Sep 23, 2005 at 00:14 UTC ( [id://494351]=obfuscated: print w/replies, xml ) Need Help??

Something like this has probably been done a million times... but not by me! Nothing all that special (it's actually extremely simple), but I think it looks like Perl just threw up all over my screen.

+$++s+\\\s q\\\+++s+s$\$$\$\$$s/s\\\s.s.{q`!^\/s\.`^q\s.\. \s.s.s q\d*q\q*\*`}(*^\q`\`!-\``qes+q _es)/$_+s _$\_$_$\_$\__s+s+++s+print

Replies are listed 'Best First'.
Re: Line noise
by liverpole (Monsignor) on Sep 23, 2005 at 01:25 UTC
    How in the world did you do this?  I have no idea where to start parsing!

    Well, the message is very well hidden, in any event!  I tried to de-obfuscate it first, but finally gave up and ran it. (++ tomorrow, when I get more votes to cast!)

      I have no idea where to start parsing

      You may not know it, but it's very easy to tap into perl's own parser, and find out what it thinks of a given piece of code:

      % perl -MO=Deparse chester chester syntax OK $+ + s/\\\s q\\+//s + s/$/$$/s / s///s . s[{q`!^/s.`^q\s][. s]s . s/\d*/do { 'JAPH' }/es + 'es)/$' + s/$_\$/$_$_/s + s///s + print($_);

      (whitespace added for clarity).

      Once it's been through the wringer it becomes clear what is happening (well, to me at least). As it turns out, it looked like chester threw a couple of diversions in the mix.

      It used to be that a particularly clever obfu will cause B::Deparse to crash, which would prevent such casual analysis. As a result, for better or worse, B::Deparse has lots more smarts these days and it's just about impossible to trip it up. Much kudos is earnt by managing to do so.

      • another intruder with the mooring in the heart of the Perl

Re: Line noise
by ciderpunx (Vicar) on Sep 23, 2005 at 11:14 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://494351]
Approved by cristian
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-29 11:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found