Minor bug fix to --os-cmd/--os-shell for Microsoft SQL Server

This commit is contained in:
Bernardo Damele 2009-07-25 11:45:23 +00:00
parent 576cc97742
commit d905e5ef9f
2 changed files with 3 additions and 1 deletions

View File

@ -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)")

View File

@ -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)