Skip to content

Commit 9fa3619

Browse files
committed
minor fix
1 parent 56a3431 commit 9fa3619

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/techniques/union/use.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
8888
# Special case when DBMS is Microsoft SQL Server and error message is used as a result of inband injection
8989
if Backend.isDbms(DBMS.MSSQL) and wasLastRequestDBMSError():
9090
retVal = htmlunescape(retVal).replace("<br>", "\n")
91+
92+
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)
9193
else:
9294
trimmed = extractRegexResult(trimcheck, removeReflectiveValues(page, payload), re.DOTALL | re.IGNORECASE) \
9395
or extractRegexResult(trimcheck, removeReflectiveValues(listToStrValue(headers.headers \
@@ -98,8 +100,6 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
98100
warnMsg += trimmed
99101
logger.warn(warnMsg)
100102

101-
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)
102-
103103
return retVal
104104

105105
def configUnion(char=None, columns=None):

0 commit comments

Comments
 (0)