MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _setAuthCred

Function _setAuthCred

lib/core/option.py:1312–1319  ·  view source on GitHub ↗

Adds authentication credentials (if any) for current target to the password manager (used by connection handler)

()

Source from the content-addressed store, hash-verified

1310 conf.boundaries = [boundary]
1311
1312def _setAuthCred():
1313 """
1314 Adds authentication credentials (if any) for current target to the password manager
1315 (used by connection handler)
1316 """
1317
1318 if kb.passwordMgr and all(_ is not None for _ in (conf.scheme, conf.hostname, conf.port, conf.authUsername, conf.authPassword)):
1319 kb.passwordMgr.add_password(None, "%s://%s:%d" % (conf.scheme, conf.hostname, conf.port), conf.authUsername, conf.authPassword)
1320
1321def _setHTTPAuthentication():
1322 """

Callers 2

setupTargetEnvFunction · 0.90
_setHTTPAuthenticationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…