mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +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:
|
||||
page = e.read()
|
||||
responseHeaders = e.info()
|
||||
|
||||
if conf.parseErrors:
|
||||
msg = extractErrorMessage(page)
|
||||
if msg:
|
||||
logger.info("parsed error message: '%s'" % msg)
|
||||
|
||||
except socket.timeout:
|
||||
warnMsg = "connection timed out while trying "
|
||||
warnMsg += "to get error page information (%d)" % code
|
||||
|
|
Loading…
Reference in New Issue
Block a user