sqlmap/waf/secureiis.py

18 lines
516 B
Python
Raw Normal View History

2013-02-22 00:34:26 +04:00
#!/usr/bin/env python
"""
2016-01-06 02:06:12 +03:00
Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/)
2013-02-22 00:34:26 +04:00
See the file 'doc/COPYING' for copying permission
"""
from lib.core.enums import HTTP_HEADER
2013-02-22 00:34:26 +04:00
__product__ = "SecureIIS Web Server Security (BeyondTrust)"
def detect(get_page):
page, headers, code = get_page()
retval = code != 404
page, headers, code = get_page(auxHeaders={HTTP_HEADER.TRANSFER_ENCODING: 'a' * 1025, HTTP_HEADER.ACCEPT_ENCODING: "identity"})
2013-02-22 00:34:26 +04:00
retval = retval and code == 404
return retval