mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-06 14:13:15 +03:00
fix for --parse-errors (on IIS HTTP error is raised which need to be processed)
This commit is contained in:
parent
cccb565859
commit
3640dbf745
|
@ -240,6 +240,12 @@ class Connect:
|
||||||
try:
|
try:
|
||||||
page = e.read()
|
page = e.read()
|
||||||
responseHeaders = e.info()
|
responseHeaders = e.info()
|
||||||
|
|
||||||
|
if conf.parseErrors:
|
||||||
|
msg = extractErrorMessage(page)
|
||||||
|
if msg:
|
||||||
|
logger.info("parsed error message: '%s'" % msg)
|
||||||
|
|
||||||
except socket.timeout:
|
except socket.timeout:
|
||||||
warnMsg = "connection timed out while trying "
|
warnMsg = "connection timed out while trying "
|
||||||
warnMsg += "to get error page information (%d)" % code
|
warnMsg += "to get error page information (%d)" % code
|
||||||
|
|
Loading…
Reference in New Issue
Block a user