Skip to content

Commit d905e5e

Browse files
committed
Minor bug fix to --os-cmd/--os-shell for Microsoft SQL Server
1 parent 576cc97 commit d905e5e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/takeover/xp_cmdshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,4 @@ def xpCmdshellInit(self, mandatory=True):
217217
debugMsg += "output to"
218218
logger.debug(debugMsg)
219219

220-
self.createSupportTbl(self.cmdTblName, self.tblField, "text")
220+
self.createSupportTbl(self.cmdTblName, self.tblField, "varchar(8000)")

lib/techniques/inband/union/use.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def unionUse(expression, direct=False, unescape=True, resetCounter=False, nullCh
219219
query = agent.forgeInbandQuery(expression, nullChar=nullChar)
220220
payload = agent.payload(newValue=query)
221221

222+
# NOTE: for debug purposes only
223+
#debugMsg = "query: %s" % payload
222224
debugMsg = "query: %s" % query
223225
logger.debug(debugMsg)
224226

0 commit comments

Comments
 (0)