Skip to content

Commit e4d3190

Browse files
committed
reverting back to NVARCHAR because of error technique
1 parent 3607f03 commit e4d3190

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

lib/takeover/xp_cmdshell.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,4 +181,6 @@ def xpCmdshellInit(self):
181181
debugMsg += "output to"
182182
logger.debug(debugMsg)
183183

184-
self.createSupportTbl(self.cmdTblName, self.tblField, "TEXT")
184+
# TEXT can't be used here because in error technique you get:
185+
# "The text, ntext, and image data types cannot be compared or sorted"
186+
self.createSupportTbl(self.cmdTblName, self.tblField, "NVARCHAR(4000)")

lib/techniques/error/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def __oneShotErrorUse(expression, field):
9393
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)
9494

9595
if trimmed:
96-
warnMsg = "trimmed output detected: "
96+
warnMsg = "possible server trimmed output detected (due to it's length): "
9797
warnMsg += trimmed
9898
logger.warn(warnMsg)
9999

lib/techniques/inband/union/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __oneShotUnionUse(expression, unpack=True):
7979
if headers else None), payload, True), re.DOTALL | re.IGNORECASE)
8080

8181
if trimmed:
82-
warnMsg = "trimmed output detected: "
82+
warnMsg = "possible server trimmed output detected (due to it's length): "
8383
warnMsg += trimmed
8484
logger.warn(warnMsg)
8585

0 commit comments

Comments
 (0)