mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
added support for handling binary data values (no more garbish chars)
This commit is contained in:
@@ -2524,4 +2524,7 @@ def getSafeHexEncodedBinaryData(value):
|
||||
retVal = value
|
||||
if isinstance(value, basestring):
|
||||
retVal = reduce(lambda x, y: x + (y if (y in string.printable or ord(y) > 255) else '\%x' % ord(y)), value, unicode())
|
||||
elif isinstance(value, list):
|
||||
for i in xrange(len(value)):
|
||||
retVal[i] = getSafeHexEncodedBinaryData(value[i])
|
||||
return retVal
|
||||
|
||||
Reference in New Issue
Block a user