mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Minor bug fix to --os-cmd/--os-shell for Microsoft SQL Server
This commit is contained in:
parent
576cc97742
commit
d905e5ef9f
|
@ -217,4 +217,4 @@ class xp_cmdshell:
|
||||||
debugMsg += "output to"
|
debugMsg += "output to"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
self.createSupportTbl(self.cmdTblName, self.tblField, "text")
|
self.createSupportTbl(self.cmdTblName, self.tblField, "varchar(8000)")
|
||||||
|
|
|
@ -219,6 +219,8 @@ def unionUse(expression, direct=False, unescape=True, resetCounter=False, nullCh
|
||||||
query = agent.forgeInbandQuery(expression, nullChar=nullChar)
|
query = agent.forgeInbandQuery(expression, nullChar=nullChar)
|
||||||
payload = agent.payload(newValue=query)
|
payload = agent.payload(newValue=query)
|
||||||
|
|
||||||
|
# NOTE: for debug purposes only
|
||||||
|
#debugMsg = "query: %s" % payload
|
||||||
debugMsg = "query: %s" % query
|
debugMsg = "query: %s" % query
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user