mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-21 15:09:03 +00:00
update (smaller memory footprint in postprocessing phase because of safecharencode part)
This commit is contained in:
@@ -27,6 +27,7 @@ from lib.core.common import replaceNewlineTabs
|
||||
from lib.core.common import safeStringFormat
|
||||
from lib.core.common import singleTimeWarnMessage
|
||||
from lib.core.common import unhandledExceptionMessage
|
||||
from lib.core.convert import safecharencode
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
@@ -521,4 +522,4 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
||||
if kb.threadException:
|
||||
raise sqlmapThreadException, "something unexpected happened inside the threads"
|
||||
|
||||
return queriesCount[0], finalValue
|
||||
return queriesCount[0], safecharencode(finalValue) if kb.safeCharEncode else finalValue
|
||||
|
||||
@@ -131,7 +131,7 @@ def __oneShotErrorUse(expression, field):
|
||||
|
||||
dataToSessionFile("[%s][%s][%s][%s][%s]\n" % (conf.url, kb.injection.place, conf.parameters[kb.injection.place], expression, replaceNewlineTabs(retVal)))
|
||||
|
||||
return retVal
|
||||
return safecharencode(retVal) if kb.safeCharEncode else retVal
|
||||
|
||||
def __errorFields(expression, expressionFields, expressionFieldsList, expected=None, num=None, resumeValue=True):
|
||||
outputs = []
|
||||
|
||||
@@ -97,7 +97,7 @@ def __oneShotUnionUse(expression, unpack=True):
|
||||
warnMsg += "issues)"
|
||||
singleTimeWarnMessage(warnMsg)
|
||||
|
||||
return output
|
||||
return safecharencode(output) if kb.safeCharEncode else output
|
||||
|
||||
def configUnion(char=None, columns=None):
|
||||
def __configUnionChar(char):
|
||||
|
||||
Reference in New Issue
Block a user