add SafeLine waf detection

This commit is contained in:
virusdefender 2019-04-12 19:17:00 +08:00
parent 3cb48ffdc3
commit b350fadc95

20
waf/safeline.py Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env python2
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import re
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "SafeLine Next Gen Web Application Firewall (SafeLine)"
def detect(get_page):
for vector in WAF_ATTACK_VECTORS:
page, headers, code = get_page(get=vector)
page = page or ''
if code >= 400 and re.search(r"<!-- event_id: \w{32} -->", page) is not None and 'SafeLine' in page:
return True
return False