sqlmap/waf/isaserver.py

17 lines
534 B
Python
Raw Normal View History

2019-03-21 16:00:09 +03:00
#!/usr/bin/env python2
"""
2019-01-05 23:38:52 +03:00
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
2017-10-11 15:50:46 +03:00
See the file 'LICENSE' for copying permission
"""
from lib.core.common import randomInt
__product__ = "ISA Server (Microsoft)"
def detect(get_page):
2016-01-07 23:58:10 +03:00
page, _, _ = get_page(host=randomInt(6))
2013-02-26 18:30:11 +04:00
retval = "The server denied the specified Uniform Resource Locator (URL). Contact the server administrator." in (page or "")
retval |= "The ISA Server denied the specified Uniform Resource Locator (URL)" in (page or "")
return retval