Adding new WAF script(TencentCloud)

This commit is contained in:
MyKings 2017-01-18 16:11:03 +08:00
parent 138aa6db65
commit 8a84c252be

23
waf/tencent.py Normal file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env python
"""
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "TencentCloud Web Application Firewall (TencentCloud)"
def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector)
retval = code == 405 and "waf.tencent-cloud.com" in (page or "")
if retval:
break
return retval