Patch the AsyncSyscall v4 exploit from working

This commit is contained in:
spsf committed 2026-02-24 02:00:37 -06:00
1 parent ab1e847d1c
commit 415064480a
7 files changed
+83 -39

No files matched your search

@@ -55,3 +55,18 @@ local origLoad = load
kernel._U = readonly(kernel._G)
kernel._U._G = kernel._U
kernel._U.load = function(a,b,c,d) return origLoad(a,b,c,d or kernel._U) end
function kernel.freshUserEnv()
local locals = {}
locals.syscall = _makeSyscallProxy()
local env = setmetatable(locals, {
__index = kernel._U,
__newindex = function(_, k, v) rawset(locals, k, v) end,
})
locals._G = env
locals.load = function(a, b, c, d) return origLoad(a, b, c, d or env) end
return env
end