mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-28 00:50:06 +03:00
add SafeLine waf detection
This commit is contained in:
parent
3cb48ffdc3
commit
b350fadc95
20
waf/safeline.py
Normal file
20
waf/safeline.py
Normal 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
|
Loading…
Reference in New Issue
Block a user