Minor update (preventing WAF specific response reports on generic 403)

This commit is contained in:
Miroslav Stampar
2018-09-18 16:45:08 +02:00
parent ca9a56c0ff
commit 3e72da66f9
3 changed files with 4 additions and 4 deletions

View File

@@ -1450,7 +1450,7 @@ def identifyWaf():
retVal.append(product)
if retVal:
if kb.wafSpecificResponse and len(retVal) == 1 and "unknown" in retVal[0].lower():
if kb.wafSpecificResponse and "You don't have permission to access" not in kb.wafSpecificResponse and len(retVal) == 1 and "unknown" in retVal[0].lower():
handle, filename = tempfile.mkstemp(prefix=MKSTEMP_PREFIX.SPECIFIC_RESPONSE)
os.close(handle)
with openFile(filename, "w+b") as f: