mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-12 02:01:25 -10:00
Work-around to avoid a TypeError traceback when reading a file content on MySQL/MSSQL
This commit is contained in:
1 parent
93ee4a01e5
commit
02f6425db8
1 file changed
+8
@@ -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)):
|
||||
|
||||
Reference in new issue
Block a user