2013-02-22 00:34:26 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
"""
|
2014-01-13 21:24:49 +04:00
|
|
|
Copyright (c) 2006-2014 sqlmap developers (http://sqlmap.org/)
|
2013-02-22 00:34:26 +04:00
|
|
|
See the file 'doc/COPYING' for copying permission
|
|
|
|
"""
|
|
|
|
|
2013-03-20 14:10:24 +04:00
|
|
|
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
|
2013-03-20 14:10:24 +04:00
|
|
|
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
|