sqlmap/waf/webappsecure.py

16 lines
360 B
Python
Raw Normal View History

#!/usr/bin/env python
"""
2015-01-06 17:02:16 +03:00
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
__product__ = "webApp.secure (webScurity)"
def detect(get_page):
page, headers, code = get_page()
if code == 403:
return False
page, headers, code = get_page(get="nx=@@")
return code == 403