mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Fixes #1579
This commit is contained in:
parent
6397704456
commit
a7c135174c
|
@ -3770,8 +3770,12 @@ def decodeHexValue(value, raw=False):
|
||||||
|
|
||||||
def _(value):
|
def _(value):
|
||||||
retVal = value
|
retVal = value
|
||||||
if value and isinstance(value, basestring) and len(value) % 2 == 0:
|
if value and isinstance(value, basestring):
|
||||||
retVal = hexdecode(retVal)
|
if len(value) % 2 != 0:
|
||||||
|
retVal = "%s?" % hexdecode(value[:-1])
|
||||||
|
singleTimeWarnMessage("there was a problem decoding value '%s' from expected hexadecimal form" % value)
|
||||||
|
else:
|
||||||
|
retVal = hexdecode(value)
|
||||||
|
|
||||||
if not kb.binaryField and not raw:
|
if not kb.binaryField and not raw:
|
||||||
if Backend.isDbms(DBMS.MSSQL) and value.startswith("0x"):
|
if Backend.isDbms(DBMS.MSSQL) and value.startswith("0x"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user