网上的C#解释器的安全问题 [英] Online c# interpreter security issues
问题描述
我与建立一个在线的C#解释的想法玩弄周围,有点像键盘。现在有明显的安全问题:
I am toying around with the idea of building an online C# interpreter, a bit like Codepad. Now there are obvious security issues:
- 无限循环
- System.Diagnostics.Process.Start
- 差不多整个System.IO命名空间
我的C#的知识是不完全微不足道,但我敢肯定有很多的了解非常多的事情,再加上我没有想到的东西。你会怎么小心?
My knowledge of C# isn't exactly insignificant, but I'm sure there are a lot that know much more about it, plus the stuff I didn't think about. What would you be careful about?
几精度,我打算用单上的一个小的Linux VPS运行此。
A few precisions, I plan on running this on a small Linux VPS using Mono.
推荐答案
使用Mono的编译器作为服务能力。它可以被编译成一个Silverlight兼容的DLL(客户端配置文件)和一直已经,您可以结账。这应该解决一些你对IO的关注。
Use Mono's Compiler as service capability. It can be compiled to a Silverlight compatible DLL (client profile), and has been already, which you can checkout. That should address some of your concerns about IO.
这篇关于网上的C#解释器的安全问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!