Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8a84c25

Browse files
committed
Adding new WAF script(TencentCloud)
1 parent 138aa6d commit 8a84c25

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

waf/tencent.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
5+
See the file 'doc/COPYING' for copying permission
6+
"""
7+
8+
import re
9+
10+
from lib.core.settings import WAF_ATTACK_VECTORS
11+
12+
__product__ = "TencentCloud Web Application Firewall (TencentCloud)"
13+
14+
def detect(get_page):
15+
retval = False
16+
17+
for vector in WAF_ATTACK_VECTORS:
18+
page, headers, code = get_page(get=vector)
19+
retval = code == 405 and "waf.tencent-cloud.com" in (page or "")
20+
if retval:
21+
break
22+
23+
return retval

0 commit comments

Comments
 (0)