Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
edetmt
/
nginx-lua
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 81c0351d
authored
Apr 24, 2020
by
edetmt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update waf reg
1 parent
849cac69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
23 deletions
README.md
rule-config/args.rule
rule-config/post.rule
README.md
View file @
81c0351
-
Nginx+Lua实现自定义WAF防护(Web application firewall)
-
Nginx+Lua实现自定义WAF防护(Web application firewall)
-
源项目为 http
s://github.com/loveshell/ngx_lua_waf 只做些许更改
-
源项目为 http
://project@git.edetmt.com:10000/project/nginx-lua.git
...
@@ -22,14 +22,6 @@ nginx.conf
...
@@ -22,14 +22,6 @@ nginx.conf
```
```
CC攻击拦截

elk日志分析

###########################
###########################
更新日志:
更新日志:
增加了whiteip cdip的功能,用以匹配ip段
增加了whiteip cdip的功能,用以匹配ip段
...
...
rule-config/args.rule
View file @
81c0351
...
@@ -3,20 +3,23 @@
...
@@ -3,20 +3,23 @@
\$\{
\$\{
select.+(from|limit)
select.+(from|limit)
(?:(union(.*?)select))
(?:(union(.*?)select))
having|rongjitest
sleep\((\s*)(\d*)(\s*)\)
sleep\((\s*)(\d*)(\s*)\)
group\s+by.+\(
(?:from\W+information_schema\W)
(?:(?:current_)user|database|version|schema|connection_id)\s*\(
\s*or\s+.*=.*
order\s+by\s+.*--$
benchmark\((.*)\,(.*)\)
benchmark\((.*)\,(.*)\)
base64_decode\(
base64_decode\(
(?:from\W+information_schema\W)
(?:(?:current_)user|database|schema|connection_id)\s*\(
(?:etc\/\W*passwd)
(?:etc\/\W*passwd)
into(\s+)+(?:dump|out)file\s*
into(\s+)+(?:dump|out)file\s*
group\s+by.+\(
xwork.MethodAccessor
xwork.MethodAccessor
(?:define|eval|file_get_contents|include|require|require_once|shell_exec|phpinfo|system|passthru|preg_\w+|execute|echo|print|print_r|var_dump|(fp)open|alert|showmodaldialog)\(
(?:define|eval|file_get_contents|include|require|require_once|shell_exec|phpinfo|system|passthru|preg_\w+|execute|echo|print|print_r|var_dump|(fp)open|alert|showmodaldialog)\(
xwork\.MethodAccessor
\<(iframe|script|body|layer|meta|style|base|object|input)
(onmouseover|onmousemove|onerror|onload)\=
javascript:
\|\|.*(?:ls|pwd|whoami|ll|ifconfog|ipconfig|&&|chmod|cd|mkdir|rmdir|cp|mv)
(?:ls|pwd|whoami|ll|ifconfog|ipconfig|&&|chmod|cd|mkdir|rmdir|cp|mv).*\|\|
(gopher|doc|php|glob|file|phar|zlib|ftp|ldap|dict|ogg|data)\:\/
(gopher|doc|php|glob|file|phar|zlib|ftp|ldap|dict|ogg|data)\:\/
java\.lang
java\.lang
\$_(GET|post|cookie|files|session|env|phplib|GLOBALS|SERVER)\[
\$_(GET|post|cookie|files|session|env|phplib|GLOBALS|SERVER)\[
\<(iframe|script|body|img|layer|div|meta|style|base|object|input)
(onmouseover|onerror|onload)\=
rule-config/post.rule
View file @
81c0351
password=123456$
password=123456$
\.\./
select.+(from|limit)
select.+(from|limit)
(?:(union(.*?)select))
(?:(union(.*?)select))
having|rongjitest
sleep\((\s*)(\d*)(\s*)\)
sleep\((\s*)(\d*)(\s*)\)
group\s+by.+\(
(?:from\W+information_schema\W)
(?:(?:current_)user|database|version|schema|connection_id)\s*\(
\s*or\s+.*=.*
order\s+by\s+.*--$
benchmark\((.*)\,(.*)\)
benchmark\((.*)\,(.*)\)
base64_decode\(
base64_decode\(
(?:from\W+information_schema\W)
(?:(?:current_)user|database|schema|connection_id)\s*\(
(?:etc\/\W*passwd)
(?:etc\/\W*passwd)
into(\s+)+(?:dump|out)file\s*
into(\s+)+(?:dump|out)file\s*
group\s+by.+\(
xwork.MethodAccessor
xwork.MethodAccessor
(?:define|eval|file_get_contents|include|require|require_once|shell_exec|phpinfo|system|passthru|preg_\w+|execute|echo|print|print_r|var_dump|(fp)open|alert|showmodaldialog)\(
(?:define|eval|file_get_contents|include|require|require_once|shell_exec|phpinfo|system|passthru|preg_\w+|execute|echo|print|print_r|var_dump|(fp)open|alert|showmodaldialog)\(
xwork\.MethodAccessor
\<(iframe|script|body|layer|meta|style|base|object|input)
(onmouseover|onmousemove|onerror|onload)\=
javascript:
\|\|.*(?:ls|pwd|whoami|ll|ifconfog|ipconfig|&&|chmod|cd|mkdir|rmdir|cp|mv)
(?:ls|pwd|whoami|ll|ifconfog|ipconfig|&&|chmod|cd|mkdir|rmdir|cp|mv).*\|\|
(gopher|doc|php|glob|file|phar|zlib|ftp|ldap|dict|ogg|data)\:\/
(gopher|doc|php|glob|file|phar|zlib|ftp|ldap|dict|ogg|data)\:\/
java\.lang
java\.lang
\$_(GET|post|cookie|files|session|env|phplib|GLOBALS|SERVER)\[
\$_(GET|post|cookie|files|session|env|phplib|GLOBALS|SERVER)\[
\<(iframe|script|body|img|layer|div|meta|style|base|object|input)
(onmouseover|onerror|onload)\=
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment