mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
28 lines
636 B
Python
28 lines
636 B
Python
#!/usr/bin/env python
|
|
|
|
"""
|
|
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
|
|
See the file 'doc/COPYING' for copying permission
|
|
"""
|
|
|
|
from lib.core.settings import IDS_WAF_CHECK_PAYLOAD
|
|
from lib.core.settings import WAF_ATTACK_VECTORS
|
|
|
|
__product__ = "Generic (Unknown)"
|
|
|
|
def detect(get_page):
|
|
retval = False
|
|
|
|
page, _, code = get_page()
|
|
if page is None or code >= 400:
|
|
return False
|
|
|
|
for vector in WAF_ATTACK_VECTORS:
|
|
page, _, code = get_page(get=vector)
|
|
|
|
if code >= 400 or IDS_WAF_CHECK_PAYLOAD in vector and code is None:
|
|
retval = True
|
|
break
|
|
|
|
return retval
|