Adding new WAF script (Issue #3579)

This commit is contained in:
Miroslav Stampar
2019-04-12 15:35:13 +02:00
parent 3cb48ffdc3
commit 1ed59267df
2 changed files with 20 additions and 1 deletions

19
waf/safeline.py Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env python2
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "SafeLine (Chaitin Tech)"
def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
page, _, _ = get_page(get=vector)
retval = all(_ in (page or "") for _ in ("SafeLine", "<!-- event_id:"))
return retval