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

Method runAsDBMSUser

lib/core/agent.py:1249–1253  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

1247 return re.sub(r"(?s)(%s.*?%s)" % (_, _), ("%s%s%s" % (PAYLOAD_DELIMITER, getUnicode(payload), PAYLOAD_DELIMITER)).replace("\\", r"\\"), value) if value else value
1248
1249 def runAsDBMSUser(self, query):
1250 if conf.dbmsCred and "Ad Hoc Distributed Queries" not in query:
1251 query = getSQLSnippet(DBMS.MSSQL, "run_statement_as_user", USER=conf.dbmsUsername, PASSWORD=conf.dbmsPassword, STATEMENT=query.replace("'", "''"))
1252
1253 return query
1254
1255 def whereQuery(self, query):
1256 if conf.dumpWhere and query:

Callers 3

_xpCmdshellCreateMethod · 0.80
_xpCmdshellConfigureMethod · 0.80
xpCmdshellForgeCmdMethod · 0.80

Calls 2

getSQLSnippetFunction · 0.90
replaceMethod · 0.45

Tested by

no test coverage detected