sqlmap/waf/wordfence.py

22 lines
652 B
Python
Raw Normal View History

2017-10-30 14:48:05 +03:00
#!/usr/bin/env python
"""
2019-01-05 23:38:52 +03:00
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
2017-10-30 14:48:05 +03:00
See the file 'LICENSE' for copying permission
"""
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "Wordfence (Feedjit)"
def detect(get_page):
retval = False
for vector in WAF_ATTACK_VECTORS:
page, _, _ = get_page(get=vector)
2019-01-05 23:29:59 +03:00
retval = any(_ in (page or "") for _ in ("A potentially unsafe operation has been detected in your request to this site", "Generated by Wordfence", "Your access to this site has been limited", "This response was generated by Wordfence"))
2017-10-30 14:48:05 +03:00
if retval:
break
return retval