Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d46f67 commit 47edf13Copy full SHA for 47edf13
1 file changed
waf/wts.py
@@ -0,0 +1,25 @@
1
+#!/usr/bin/env python
2
+
3
+"""
4
+Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
5
+See the file 'LICENSE' for copying permission
6
7
8
+import re
9
10
+from lib.core.enums import HTTP_HEADER
11
+from lib.core.settings import WAF_ATTACK_VECTORS
12
13
+__product__ = "WTS Web Application Firewall"
14
15
+def detect(get_page):
16
+ retval = False
17
18
+ for vector in WAF_ATTACK_VECTORS:
19
+ page, headers, _ = get_page(get=vector)
20
+ retval = re.search(r"wts(.*)?", headers.get(HTTP_HEADER.SERVER, ""), re.I) is not None
21
+ retval |= all(_ in (page or "") for _ in ("<title>WTS.WAF", "<h1>WTS-WAF"))
22
+ if retval:
23
+ break
24
25
+ return retval
0 commit comments