diff --git a/lib/techniques/error/use.py b/lib/techniques/error/use.py index 61700edcb..7559b34c7 100644 --- a/lib/techniques/error/use.py +++ b/lib/techniques/error/use.py @@ -16,6 +16,7 @@ from lib.core.common import calculateDeltaSeconds from lib.core.common import dataToSessionFile from lib.core.common import dataToStdout from lib.core.common import extractRegexResult +from lib.core.common import getUnicode from lib.core.common import initTechnique from lib.core.common import isNumPosStrValue from lib.core.common import listToStrValue @@ -77,6 +78,8 @@ def __oneShotErrorUse(expression, field): if threadData.lastRedirectMsg and threadData.lastRedirectMsg[0] == \ threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE) + output = getUnicode(output, kb.pageEncoding) + if isinstance(output, basestring): output = htmlunescape(output).replace("
", "\n") diff --git a/lib/techniques/inband/union/use.py b/lib/techniques/inband/union/use.py index 0fd2c953f..81bde9fe6 100644 --- a/lib/techniques/inband/union/use.py +++ b/lib/techniques/inband/union/use.py @@ -65,6 +65,8 @@ def __oneShotUnionUse(expression, unpack=True): or extractRegexResult(check, removeReflectiveValues(listToStrValue(headers.headers \ if headers else None), payload), re.DOTALL | re.IGNORECASE) + output = getUnicode(output, kb.pageEncoding) + return output def configUnion(char=None, columns=None):