Work-around to avoid a TypeError traceback when reading a file content on MySQL/MSSQL

This commit is contained in:
Bernardo Damele 2009-06-02 14:24:48 +00:00
parent 93ee4a01e5
commit 02f6425db8

View File

@ -65,6 +65,14 @@ class Filesystem:
def __unhexString(self, hexStr):
unhexStr = ""
if ( len(hexStr) % 2 ) != 0:
errMsg = "for some reasons sqlmap retrieved an odd-length "
errMsg += "hexadecimal string which it is not able to convert "
errMsg += "to raw string"
logger.error(errMsg)
return hexStr
if isinstance(hexStr, (list, tuple, set)):
for chunk in hexStr:
if isinstance(chunk, (list, tuple, set)):