Closed Jamextreme140 closed 4 months ago
while(Script.importBlocklist.length > 0) Script.importBlocklist.pop()
and i'm also not sure about this either, well also first of all cause its easily avoidable as neeo made you see but also cause it would create MANY limitations
Wait. I think I have a better idea for Safe Mode
We came up with a idea where like its gonna be like a toggle thats by default off
Yeah, that's exactly what I was thinking about. Safe Mode as an Option instead of a separated build
This SUCKS so GODDAMN MUCH.
I should be able to DESTROY your PC via my SILLY and FUNNY rhythm game song.
We came up with a idea where like its gonna be like a toggle thats by default off
check you the edited first comment and latest commit
We could probably just do @:unreflective on hscript-improved to turn off being able to edit it
We could probably just do @:unreflective on hscript-improved to turn off being able to edit it
Hmm, it can work
It disables the usage of classes that can perform malicious operations like Sys.command() and cpp.Lib.load().
Reflect and Type are disallowed since it can access to blacklisted classes (Reflect.callMethod() and Type.resolveClass())
Example: A song script tries to execute this following song script (function postCreate()):
trace(Reflect.getProperty(PlayState, "difficulty"))
Sys.command("echo Howdy")
After disabled "Safe mode" it works normally again
Safe Mode mark when it's enabled