From f31c1aae96248a3020a24e568d354c4591ed6d0f Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 9 Oct 2022 10:39:46 +0800 Subject: [PATCH] up --- plugins/op_waf/waf/lua/init.lua | 1 + plugins/op_waf/waf/rule/user_agent.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/op_waf/waf/lua/init.lua b/plugins/op_waf/waf/lua/init.lua index d722843c9..6539aec1f 100644 --- a/plugins/op_waf/waf/lua/init.lua +++ b/plugins/op_waf/waf/lua/init.lua @@ -208,6 +208,7 @@ end function waf_user_agent() + D("12312") if not config['user-agent']['open'] or not C:is_site_config('user-agent') then return false end if C:is_ngx_match(user_agent_rules,params['request_header']['user-agent'],'user_agent') then C:write_log('user_agent','regular') diff --git a/plugins/op_waf/waf/rule/user_agent.json b/plugins/op_waf/waf/rule/user_agent.json index b85a8e35d..57d5d72e9 100755 --- a/plugins/op_waf/waf/rule/user_agent.json +++ b/plugins/op_waf/waf/rule/user_agent.json @@ -1 +1 @@ -[[1, "(HTTrack|Apache-HttpClient|harvest|audit|dirbuster|pangolin|nmap|sqln|hydra|Parser|libwww|BBBike|sqlmap|w3af|owasp|Nikto|fimap|havij|zmeu|BabyKrokodil|netsparker|httperf| SF/)", "\u5173\u952e\u8bcd\u8fc7\u6ee41", 0]] \ No newline at end of file +[[1,"(HTTrack|Apache-HttpClient|harvest|audit|dirbuster|pangolin|nmap|sqln|hydra|Parser|libwww|BBBike|sqlmap|w3af|owasp|Nikto|fimap|havij|zmeu|BabyKrokodil|netsparker|httperf| SF/)","关键词过滤1",0],[2,"(ApacheBench)","AB测试",0]] \ No newline at end of file