Aldebaran has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I had read up on the new nodes, so I went to the tutorials to select something that I thought might be interesting and improve my perl game, settling on 181977, which has a good example of Tk that a beginner can replicate. I downloaded and executed the script, finding that it produces a window that shows the contents of a directory, has another for a listing of a selected file, and a final one for the output if it's a perl script. It's billed as an "obfu decoder ring," as one can, allegedly, see the output of a script or with pasted-in text without giving it full-reign.
At the end of the thread, someone posted an obfuscated script, which I turned into a .pl file to see what it might reveal, getting no output. What's more, the poster claimed you would be more or less brainless to run it without the use of Safe.pm.
My question is: how do I use Safe.pm effectively? Assume that I have an obfu that I can make neither heads nor tails of. I won't list the one at the end of this node, because I don't know whether it is pernicious or not. What I have so far is this:
#!/usr/bin/perl use Safe; use 5.010; say "safe";
Thanks for your comment,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Safe.pm
by CountZero (Bishop) on Jul 06, 2015 at 06:07 UTC | |
by Aldebaran (Curate) on Jul 07, 2015 at 07:13 UTC | |
by CountZero (Bishop) on Jul 07, 2015 at 12:00 UTC | |
by Anonymous Monk on Jul 07, 2015 at 07:59 UTC | |
by Aldebaran (Curate) on Jul 10, 2015 at 00:16 UTC | |
by Anonymous Monk on Jul 10, 2015 at 02:12 UTC | |
by Anonymous Monk on Jul 11, 2015 at 02:52 UTC | |
|
Re: using Safe.pm
by CountZero (Bishop) on Jul 06, 2015 at 05:55 UTC | |
by Aldebaran (Curate) on Jul 06, 2015 at 06:28 UTC | |
by CountZero (Bishop) on Jul 06, 2015 at 12:10 UTC | |
by Anonymous Monk on Jul 06, 2015 at 07:56 UTC |