Adding a hidden switch --ignore-401

This commit is contained in:
Miroslav Stampar
2014-04-29 23:26:45 +02:00
parent bd16bb7a6a
commit 2e96e3c924
3 changed files with 5 additions and 1 deletions

View File

@@ -493,7 +493,7 @@ class Connect(object):
logger.log(CUSTOM_LOGGING.TRAFFIC_IN, responseMsg)
if e.code == httplib.UNAUTHORIZED:
if e.code == httplib.UNAUTHORIZED and not conf.ignore401:
errMsg = "not authorized, try to provide right HTTP "
errMsg += "authentication type and valid credentials (%d)" % code
raise SqlmapConnectionException(errMsg)