Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: hidden functionality

by cchampion (Curate)
on Mar 22, 2002 at 11:27 UTC ( [id://153536]=note: print w/replies, xml ) Need Help??


in reply to hidden functionality

Since you asked ...
SPOILER follows.
Add the following before your triple eval.
print; print "\n>>>>\n"; print eval $_; print "\n>>>>\n";
Your $_ is first uudecoded and then packed from hex.
After the first eval you have:
my$c;$_="7072696e7420224a75737420616e6f74686572205065726c206861636b657 +25c6e223b"; while(m((..))sg){$c.=chr hex$1;}return$c;
A hex string converted to plain text. Why not using pack then?
return pack "H*", $_;
Anyway, the hex string contains the plain
'print "Just another Perl hacker\n"'
Cheers.
cchampion

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-07-15 15:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.