Merge pull request #2359 from MyKings/master

Adding new WAF script(TencentCloud)
This commit is contained in:
Miroslav Stampar 2017-01-18 10:36:39 +01:00 committed by GitHub
commit 2224ac76aa

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