mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Bug fix (credentials used in combination with request file)
This commit is contained in:
@@ -1115,7 +1115,7 @@ def _setAuthCred():
|
|||||||
(used by connection handler)
|
(used by connection handler)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if kb.passwordMgr:
|
if kb.passwordMgr and all(_ is not None for _ in (conf.scheme, conf.hostname, conf.port, conf.authUsername, conf.authPassword)):
|
||||||
kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
|
kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
|
||||||
|
|
||||||
def _setHTTPAuthentication():
|
def _setHTTPAuthentication():
|
||||||
|
|||||||
Reference in New Issue
Block a user