Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: embedding a safe unescapable mini perl interpreter?

by iaw4 (Monk)
on Jan 01, 2012 at 05:49 UTC ( [id://945776]=note: print w/replies, xml ) Need Help??


in reply to Re^3: embedding a safe unescapable mini perl interpreter?
in thread embedding a safe unescapable mini perl interpreter?

ok. thanks everybody.

it looks like this is going to be a lot more effort than I thought it would be. pity and surprising. there should be a complete set of everything that can 'escape' into the sandbox---backquotes, system(), fopen(), etc.---or, better yet, a complete set of features known not to escape. all I wanted is a clear subset with string manipulation, numerical functions, STDOUT, and basic variables, and a set of functions I would enumerate as 'safe'. if that had existed, I could have sanitized the first user input, and then passed it to 'eval'. it may still be simpler to do this than to write my own little language.

next, I will check out SafeEval, as described in http://www.daniweb.com/software-development/perl/code/216821

  • Comment on Re^4: embedding a safe unescapable mini perl interpreter?

Replies are listed 'Best First'.
Re^5: embedding a safe unescapable mini perl interpreter?
by Anonymous Monk on Jan 01, 2012 at 06:06 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-23 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found