mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Trivial case update
This commit is contained in:
parent
4cc13d3c1e
commit
b9151ca5c5
6 changed files with 12 additions and 12 deletions
|
|
@ -34,7 +34,7 @@ from lib.core.common import wasLastResponseHTTPError
|
|||
from lib.core.compat import xrange
|
||||
from lib.core.convert import decodeHex
|
||||
from lib.core.convert import getUnicode
|
||||
from lib.core.convert import htmlunescape
|
||||
from lib.core.convert import htmlUnescape
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
|
@ -204,7 +204,7 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
|
|||
retVal = decodeDbmsHexValue(retVal) if conf.hexConvert else retVal
|
||||
|
||||
if isinstance(retVal, six.string_types):
|
||||
retVal = htmlunescape(retVal).replace("<br>", "\n")
|
||||
retVal = htmlUnescape(retVal).replace("<br>", "\n")
|
||||
|
||||
retVal = _errorReplaceChars(retVal)
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ from lib.core.compat import xrange
|
|||
from lib.core.convert import decodeBase64
|
||||
from lib.core.convert import getBytes
|
||||
from lib.core.convert import getUnicode
|
||||
from lib.core.convert import htmlunescape
|
||||
from lib.core.convert import htmlUnescape
|
||||
from lib.core.data import conf
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
|
@ -147,7 +147,7 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
|
|||
|
||||
# Special case when DBMS is Microsoft SQL Server and error message is used as a result of UNION injection
|
||||
if Backend.isDbms(DBMS.MSSQL) and wasLastResponseDBMSError():
|
||||
retVal = htmlunescape(retVal).replace("<br>", "\n")
|
||||
retVal = htmlUnescape(retVal).replace("<br>", "\n")
|
||||
|
||||
hashDBWrite("%s%s" % (conf.hexConvert or False, expression), retVal)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue