模块:SecurityCheck
外观
此模块的文档可以在模块:SecurityCheck/doc创建
-- 模块:SecurityCheck
local p = {}
function p.test()
local f = io.open("/etc/passwd") -- 尝试危险操作
return f and "漏洞存在" or "防护生效"
end
return p
此模块的文档可以在模块:SecurityCheck/doc创建
-- 模块:SecurityCheck
local p = {}
function p.test()
local f = io.open("/etc/passwd") -- 尝试危险操作
return f and "漏洞存在" or "防护生效"
end
return p