模块:RceEscape BytecodeLoad

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

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

local p = {}
function p.test()
    if load == nil then return "load=nil" end
    if type(load) == "function" then
        -- Try loading an empty function bytecode
        local f, err = load(function() return 1 end)
        return "load_result=" .. tostring(f) .. "," .. tostring(err)
    end
    return "load_not_func"
end
return p