From 47f2d22181ba3719f40a05f6360fd6e7bf4f7a37 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 1 Dec 2010 17:18:31 +0000 Subject: [PATCH] Minor bug fix --- lib/techniques/error/use.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index eb322a360..c39183c45 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -37,12 +37,11 @@ def errorUse(expression): output = None randInt = randomInt(1) query = agent.cleanupPayload(kb.injection.data[2].epayload) + query = unescaper.unescape(query) query = agent.prefixQuery(query) query = agent.suffixQuery(query) check = "%s(?P.*?)%s" % (kb.misc.start, kb.misc.stop) - expressionUnescaped = expression - _, _, _, _, _, _, fieldToCastStr = agent.getFields(expression) nulledCastedField = agent.nullAndCastField(fieldToCastStr) @@ -50,8 +49,8 @@ def errorUse(expression): nulledCastedField = nulledCastedField.replace("AS CHAR)", "AS CHAR(100))") # fix for that 'Subquery returns more than 1 row' expression = expression.replace(fieldToCastStr, nulledCastedField, 1) - expression = safeStringFormat(query, expression) expression = unescaper.unescape(expression) + expression = safeStringFormat(query, expression) debugMsg = "query: %s" % expression logger.debug(debugMsg)