Too generic (removing)

This commit is contained in:
Miroslav Stampar 2019-01-12 02:38:54 +01:00
parent 660036c38b
commit 7cf4b0e1d2
3 changed files with 2 additions and 24 deletions

View file

@ -1,21 +0,0 @@
#!/usr/bin/env python
"""
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__ = "NGINX Web Application Firewall (NGINX Inc.)"
def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
page, _, _ = get_page(get=vector)
retval = all(_ in (page or "") for _ in ("<center><h1>403 Forbidden</h1></center>", "<center>nginx</center>"))
if retval:
break
return retval