Minor upgrade for WAF/IDS/IPS detection

This commit is contained in:
Miroslav Stampar
2016-05-31 09:49:50 +02:00
parent f0500b1d2f
commit 2c6621c26a
2 changed files with 4 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ See the file 'doc/COPYING' for copying permission
import re
from lib.core.settings import IDS_WAF_CHECK_PAYLOAD
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "Generic (Unknown)"
@@ -21,7 +22,7 @@ def detect(get_page):
for vector in WAF_ATTACK_VECTORS:
page, _, code = get_page(get=vector)
if code >= 400:
if code >= 400 or IDS_WAF_CHECK_PAYLOAD in vector and code is None:
retval = True
break