sqlmap/waf/webappsecure.py

16 lines
338 B
Python
Raw Normal View History

#!/usr/bin/env python
"""
2017-01-02 16:19:18 +03:00
Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
2017-10-11 15:50:46 +03:00
See the file 'LICENSE' for copying permission
"""
__product__ = "webApp.secure (webScurity)"
def detect(get_page):
2016-01-07 23:58:10 +03:00
_, _, code = get_page()
if code == 403:
return False
2016-01-07 23:58:10 +03:00
_, _, code = get_page(get="nx=@@")
return code == 403