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

Function _setDBMSAuthentication

lib/core/option.py:532–552  ·  view source on GitHub ↗

Check and set the DBMS authentication credentials to run statements as another user, not the session user

()

Source from the content-addressed store, hash-verified

530 logger.warning(warnMsg)
531
532def _setDBMSAuthentication():
533 """
534 Check and set the DBMS authentication credentials to run statements as
535 another user, not the session user
536 """
537
538 if not conf.dbmsCred:
539 return
540
541 debugMsg = "setting the DBMS authentication credentials"
542 logger.debug(debugMsg)
543
544 match = re.search(r"^(.+?):(.*?)$", conf.dbmsCred)
545
546 if not match:
547 errMsg = "DBMS authentication credentials value must be in format "
548 errMsg += "username:password"
549 raise SqlmapSyntaxException(errMsg)
550
551 conf.dbmsUsername = match.group(1)
552 conf.dbmsPassword = match.group(2)
553
554def _setMetasploit():
555 if not conf.osPwn and not conf.osSmb and not conf.osBof:

Callers 1

initFunction · 0.85

Calls 3

debugMethod · 0.80
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…