mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
fix for proper MSSQL error chunking in some cases (not screwing output length toward lower values at chunk phase)
This commit is contained in:
parent
e6f010734e
commit
83fac3f6d9
|
@ -104,9 +104,6 @@ def __oneShotErrorUse(expression, field):
|
|||
warnMsg += trimmed
|
||||
logger.warn(warnMsg)
|
||||
|
||||
if isinstance(output, basestring):
|
||||
output = htmlunescape(output).replace("<br>", "\n")
|
||||
|
||||
if any(map(lambda dbms: Backend.isDbms(dbms), [DBMS.MYSQL, DBMS.MSSQL])):
|
||||
if offset == 1:
|
||||
retVal = output
|
||||
|
@ -121,6 +118,9 @@ def __oneShotErrorUse(expression, field):
|
|||
retVal = output
|
||||
break
|
||||
|
||||
if isinstance(retVal, basestring):
|
||||
retVal = htmlunescape(retVal).replace("<br>", "\n")
|
||||
|
||||
retVal = __errorReplaceChars(retVal)
|
||||
|
||||
dataToSessionFile("[%s][%s][%s][%s][%s]\n" % (conf.url, kb.injection.place, conf.parameters[kb.injection.place], expression, replaceNewlineTabs(retVal)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user