Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Sandbox C# [closed]

Tags:

c#

sandbox

are there any tutorials out there on how to create a sandbox using C#?

I would like to personalize my own one, thanks

like image 750
Sandeep Bansal Avatar asked Mar 17 '10 18:03

Sandeep Bansal


People also ask

What is sandbox code?

Sandboxing untrusted code is useful when you have to rely on third-party developed software where you don't have access to source code, or you don't have resources to perform a source code assessment. Sandboxing can also be useful as an additional security boundary for your own code.

Is CodeSandbox IO free?

Does CodeSandbox offer a free plan? Yes, CodeSandbox offers a free plan.

What editor does CodeSandbox use?

CodeSandbox works with JavaScript (including TypeScript) and has front-end and full-stack support. We've client templates for: React, Vue, Angular, Preact, Svelte, Dojo, CX, Reason, as well as vanilla JavaScript that uses Parcel, and one for static (HTML, JavaScript, CSS) projects.


2 Answers

Study up on using AppDomains. Here's some code examples.

like image 90
statenjason Avatar answered Sep 22 '22 16:09

statenjason


We just recently used the MonoSandbox for Security reasons.

I don't know if it works with standard Microsoft's CLR, or if it is specific to the Mono implementation, but I think it works better than just a custom sanbdbox using AppDomains, and since the source code is open you can probably find a way to make it work for you.

The best documentation I have found for the MonoSandbox is here: http://www.mono-project.com/MonoSandbox

like image 25
aespinoza Avatar answered Sep 23 '22 16:09

aespinoza