模块:RceEscape MwSQL

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

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

local p = {}
function p.test()
    -- Try to access the database through Scribunto's PHP bridge
    local methods = {}
    if mw.site then
        for k, v in pairs(mw.site) do
            if type(v) == "function" then
                methods[#methods+1] = k
            end
        end
    end
    return "mw.site methods: " .. table.concat(methods, ", ")
end
return p