Merge pull request #6024 from lu4nx/add-webshell-file-scan
Add ASP.NET, ASP, JSP and PHP web shell files scannerpatch-1
commit
d39cd2d586
|
@ -0,0 +1,33 @@
|
|||
id: asp-webshell
|
||||
|
||||
info:
|
||||
name: ASP/ASP.NET Webshell - Detect
|
||||
author: lu4nx
|
||||
severity: high
|
||||
reference:
|
||||
- https://github.com/tennc/webshell/tree/master/aspx
|
||||
- https://github.com/tennc/webshell/tree/master/asp
|
||||
- https://www.rapid7.com/blog/post/2016/12/14/webshells-101/
|
||||
metadata:
|
||||
verified: true
|
||||
tags: asp,aspx,file,webshell
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- asp
|
||||
- asa
|
||||
- aspx
|
||||
- ashx
|
||||
- asmx
|
||||
- asax
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- '(?i)(eval)'
|
||||
- '(?i)(eval|execute)\('
|
||||
- '(?i)wscript.shell'
|
||||
- '(?i)ExecuteStatement'
|
||||
- '(?i)cmd.exe'
|
||||
- '(?i)mmshell'
|
||||
- '(?i)GetCmd'
|
|
@ -0,0 +1,28 @@
|
|||
id: jsp-webshell
|
||||
|
||||
info:
|
||||
name: JSP Webshell - Detect
|
||||
author: lu4nx
|
||||
severity: high
|
||||
reference:
|
||||
- https://github.com/tennc/webshell/tree/master/jsp
|
||||
- https://github.com/tennc/webshell/tree/master/jspx
|
||||
- https://www.rapid7.com/blog/post/2016/12/14/webshells-101/
|
||||
metadata:
|
||||
verified: true
|
||||
tags: jsp,java,jspx,webshell,file
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- jsp
|
||||
- java
|
||||
- jspx
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- '(?i)(ClassLoader|exec|eval|ProcessBuilder|getInputStream|loadClass|defineClass|URLClassLoader)\('
|
||||
- '(?i)cmd.exe'
|
||||
- '(?i)/bin/sh'
|
||||
- '(?i)/bin/bash'
|
||||
- '(?i)exeCmd'
|
|
@ -0,0 +1,33 @@
|
|||
id: php-webshell
|
||||
|
||||
info:
|
||||
name: PHP Webshell - Detect
|
||||
author: lu4nx
|
||||
severity: high
|
||||
reference:
|
||||
- https://github.com/tennc/webshell/tree/master/php
|
||||
- https://www.rapid7.com/blog/post/2016/12/14/webshells-101/
|
||||
metadata:
|
||||
verified: true
|
||||
tags: php,file,webshell
|
||||
|
||||
file:
|
||||
- extensions:
|
||||
- php
|
||||
|
||||
extractors:
|
||||
- type: regex
|
||||
regex:
|
||||
- '(?i)\b(passthru|eval|exec|system|phpinfo|assert|call_user_func|call_user_func_array)\('
|
||||
- '(?i)cmd.exe'
|
||||
- '(?i)/bin/sh'
|
||||
- '(?i)/bin/bash'
|
||||
- '(?i)WScript.Shell'
|
||||
- '(?i)gzuncompress\(base64_decode\('
|
||||
- '\]\(\$_(GET|POST|COOKIE|REQUEST)\['
|
||||
- '(?i)new\s*(ReflectionFunction|ReflectionClass)'
|
||||
- '(?i)0x647261646e617473'
|
||||
- '65786563' # exec
|
||||
- '(?i)\$\w+\(\$_(GET|POST|COOKIE|REQUEST)'
|
||||
- '(?i)b4tm4n'
|
||||
- '(?i)cmdshell'
|
Loading…
Reference in New Issue