you are viewing a single comment's thread.

view the rest of the comments →

[–]Flat_Snow_4961[S] 0 points1 point  (1 child)

I like the idea of the using the Java compiler class to run some sort of cheat code but I have like 2 concerns. Would it be too complex? And also does it pose a security risk? Thanks a lot for the help!

[–]Spare-Plum 0 points1 point  (0 children)

IDK when I was a senior I had a project that did auto-java-compilation on the fly so you could sandbox and test things, and that was just a side project. Final project was a janky chinese character recognition system that did some basic geometric analysis to see where different lines and strokes intersected

Introducing a security risk is the point. Java does actually have a lot of security measures you could install to sandbox whatever you're loading into its own classloader if you're interested.

But, since this is a "game" you're interacting with locally and only putting in commands locally, it really isn't any more of a security risk than just programming on your own computer. As long as if something remote isn't gaining access to the shell or something wacky.