Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Can you prevent MO=Deparse

by Abigail-II (Bishop)
on May 08, 2003 at 22:25 UTC ( #256694=note: print w/replies, xml ) Need Help??


in reply to Can you prevent MO=Deparse

I don't know whether you can turn tainting on in embedded programs, but if you can, you can at least prevent the trick above by turning tainting on.

Another way to prevent the construct above is to make your own custom perl, in which have removed any support for the backend modules. Then you statically link your C program against the modified perl.

Abigail

Replies are listed 'Best First'.
Re: Re: Can you prevent MO=Deparse
by zentara (Archbishop) on May 10, 2003 at 19:26 UTC
    Thanks Abigail-II, I tested using Taint mode on some scripts this afternoon, and it does indeed prevent it from being deparsed by the above method. Great.
      Are you calling the system's perl? In that case all I need to do is rename it, and put a perl binary somewhere that adds -MO=Deparse to the commandline before calling the renamed perl to make the above trick work again.

      Makeshifts last the longest.

        Oh what wicked web we weave..........:-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2020-10-24 04:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (242 votes). Check out past polls.

    Notices?