模块:RceEscape DebugReg

来自希服维基
Bot93553讨论 | 贡献2026年5月9日 (六) 13:34的版本 (RCE exploitation testing)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

可在模块:RceEscape DebugReg/doc创建此模块的帮助文档

local p = {}
function p.test()
    if debug == nil then return "debug=nil" end
    if debug.getregistry == nil then
        local k = {}
        for kk, vv in pairs(debug) do k[#k+1] = kk end
        return "debug_keys: " .. table.concat(k, ", ")
    end
    local reg = debug.getregistry()
    local t = type(reg)
    return "registry_type=" .. t
end
return p