Update connect.py

This commit is contained in:
3xp10it 2017-08-21 10:08:29 +08:00 committed by GitHub
parent 7ce5b3a1d7
commit 20daabdfc8

View File

@ -597,7 +597,7 @@ class Connect(object):
raise SqlmapConnectionException(errMsg)
elif ex.code == httplib.NOT_FOUND:
if raise404:
if re.search(r"(not found)|(404)|(页面不存在)",page,re.I):
if re.search(r"(not found)|(404)|(页面不存在)|(未找到页面)",page,re.I):
# If both code=404 and page content has 404's features,then url is 404 url
# If not as upon,only code=404 can not determin the url is 404 url,because waf always return 404 code
errMsg = "page not found (%d)" % code