mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
Work-around to avoid a TypeError traceback when reading a file content on MySQL/MSSQL
This commit is contained in:
parent
93ee4a01e5
commit
02f6425db8
|
@ -65,6 +65,14 @@ class Filesystem:
|
||||||
def __unhexString(self, hexStr):
|
def __unhexString(self, hexStr):
|
||||||
unhexStr = ""
|
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)):
|
if isinstance(hexStr, (list, tuple, set)):
|
||||||
for chunk in hexStr:
|
for chunk in hexStr:
|
||||||
if isinstance(chunk, (list, tuple, set)):
|
if isinstance(chunk, (list, tuple, set)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user