Sandbox IronPython?

2019-03-10 16:03发布

Is it possible to run an IronPython interpreter inside my .Net application, but inside a sandbox? I want to deny the IP script access to the filesystem while still allowing the app itself access.

Would this involve running the scripting engine in a second AppDomain? How would I handcuff it so it can't do whatever it pleases?

1条回答
爷、活的狠高调
2楼-- · 2019-03-10 16:40

Here's an article explaining how to create an AppDomain and execute code in a sandbox. Just create the AppDomain and handcuff the code that runs inside it.

查看更多
登录 后发表回答