admin管理员组文章数量:1278819
I want to interpret html pages scripts, but want to disable any posibility of harming my puter. Is there are any official tutorial or example how to configure such feature? (i dont find it in offcial site)
I want to interpret html pages scripts, but want to disable any posibility of harming my puter. Is there are any official tutorial or example how to configure such feature? (i dont find it in offcial site)
Share Improve this question edited Nov 30, 2010 at 15:48 yura asked Nov 30, 2010 at 13:22 yurayura 14.7k23 gold badges79 silver badges128 bronze badges3 Answers
Reset to default 6run an initial script like this:
java = undefined;
Packages = undefined;
org = undefined;
...
then it is sandboxed.
I haven't seen any official example, but see this SO question and particularly this article on sandboxing in Rhino. The article gives a pretty good overview of the things you'll have to set up and guard against.
Beware reflection "out.println('outclass ' + out.getClass().forName('java.io.File'));"
There are many traps to this trade. Previous answer not good enough.
本文标签: javaHow to configure sandbox security in in Rhino JavaScript engineStack Overflow
版权声明:本文标题:java - How to configure sandbox security in in Rhino JavaScript engine - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741222279a2361193.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论