How to open calc.exe from S&Box

https://lobste.rs/rss Hits: 25
Summary

How to open calc.exe from S&Box Thursday May 21, 2026 So, S&Box went “open source”. I don’t personally have any interest in the platform, but I did have interest in how they securely execute C# code… So S&Box is “Garry’s Mod 2”, or maybe it’s Roblox Source 2, I really don’t care about it directly. The thing that’s relevant to me is that instead of using Lua or something, they use full powered C# for game scripting. C#/.NET is not Lua: it is not designed to run untrusted code, so how do they get away with it? The solution is quite simple: they scan your code and block loading it if you use any APIs like File.Open(). Now, is this secure? Well… To be clear: if you are a security-minded person, this is an atrocious idea. The .NET runtime is not hardened to intentionally execute hostile code like a browser Javascript engine is. It used to be in the .NET Framework days, but they gave up on that with modern .NET, and I’ve heard there was a giant streak of vulnerabilities back then anyway. On the other hand… Space Station 14 does exactly the same thing, and I wrote the damn code for that. I’m not going to pretend I’m any better than them. The reason why we’re both using C# is extremely simple: C# is hands down one of the best programming languages ever, full stop. I could do an entire blog post on just how good C# is, but I’ll spare you that here. In Space Station 14’s case, it’s no exaggeration to say that it’s a huge factor of why the project even succeeded in the first place. But anyways, let’s check the sandbox whitelist, sha- spits out drink // Compiler generates all this scary shit that the user shouldn't be using // User code is checked in Sandbox.Compiling blacklist "System.Private.CoreLib/System.Runtime.CompilerServices.Unsafe.Add*", "System.Private.CoreLib/System.Runtime.CompilerServices.Unsafe.As*", "System.Private.CoreLib/System.Runtime.CompilerServices.Unsafe.AsRef*", What are they thinking? It can’t be that easy can it??? Alright. Let’s just try this. There’s ...

First seen: 2026-05-21 21:07

Last seen: 2026-05-22 21:26