mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Bug fix (credentials used in combination with request file)
This commit is contained in:
parent
3b47418a1d
commit
0622cdf3d8
|
@ -1115,7 +1115,7 @@ def _setAuthCred():
|
|||
(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)
|
||||
|
||||
def _setHTTPAuthentication():
|
||||
|
|
Loading…
Reference in New Issue
Block a user