增加sql的waf功能

This commit is contained in:
琴心
2022-03-03 16:16:53 +08:00
parent 5910cb2983
commit fcace799df
54 changed files with 12617 additions and 73 deletions

11
waf/report.lua Normal file
View File

@@ -0,0 +1,11 @@
local _M = {}
function _M.violation(result)
full_violation_text = "violation: \n"
if result == g_violation_sql_detect then
g_result_sql_detect = full_violation_text .. "SQL Injection detected \n"
end
full_violation_text = full_violation_text .. ngx.var.request_uri .. " \n"
log(violation)
say_html()
end
return _M