mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 01:19:47 +03:00
Merge 8adc8bdd39
into 591a60bbde
This commit is contained in:
commit
dd7f5252ce
|
@ -149,6 +149,9 @@ def cmdLineParser(argv=None):
|
|||
request.add_option("--auth-file", dest="authFile",
|
||||
help="HTTP authentication PEM cert/private key file")
|
||||
|
||||
request.add_option("--ignore-400", dest="ignore400", action="store_true",
|
||||
help="Suppress HTTP Error 400 (Bad Request)")
|
||||
|
||||
request.add_option("--ignore-401", dest="ignore401", action="store_true",
|
||||
help="Ignore HTTP Error 401 (Unauthorized)")
|
||||
|
||||
|
|
|
@ -621,8 +621,9 @@ class Connect(object):
|
|||
else:
|
||||
raise SqlmapConnectionException(warnMsg)
|
||||
else:
|
||||
debugMsg = "got HTTP error code: %d (%s)" % (code, status)
|
||||
logger.debug(debugMsg)
|
||||
if ex.code == httplib.BAD_REQUEST and not conf.ignore400:
|
||||
debugMsg = "got HTTP error code: %d (%s)" % (code, status)
|
||||
logger.debug(debugMsg)
|
||||
|
||||
except (urllib2.URLError, socket.error, socket.timeout, httplib.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError):
|
||||
tbMsg = traceback.format_exc()
|
||||
|
|
Loading…
Reference in New Issue
Block a user