mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Fix for an Issue #125
This commit is contained in:
@@ -993,6 +993,15 @@ def __setPrefixSuffix():
|
||||
# to be tested for
|
||||
conf.boundaries = [ boundary ]
|
||||
|
||||
def __setAuthCred():
|
||||
"""
|
||||
Adds authentication credentials (if any) for current target to the password manager
|
||||
(used by connection handler)
|
||||
"""
|
||||
|
||||
if kb.passwordMgr:
|
||||
kb.passwordMgr.add_password(None, "%s://%s" % (conf.scheme, conf.hostname), conf.authUsername, conf.authPassword)
|
||||
|
||||
def __setHTTPAuthentication():
|
||||
"""
|
||||
Check and set the HTTP(s) authentication method (Basic, Digest, NTLM or Certificate),
|
||||
@@ -1044,6 +1053,8 @@ def __setHTTPAuthentication():
|
||||
|
||||
kb.passwordMgr = urllib2.HTTPPasswordMgrWithDefaultRealm()
|
||||
|
||||
__setAuthCred()
|
||||
|
||||
if aTypeLower == "basic":
|
||||
authHandler = SmartHTTPBasicAuthHandler(kb.passwordMgr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user