File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.6.21 "
21+ VERSION = "1.3.6.22 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ def errorThread():
452452 value = _errorFields (expression , expressionFields , expressionFieldsList )
453453
454454 if value and isListLike (value ):
455- if len (value ) == 1 and isinstance (value [0 ], six .string_types ):
455+ if len (value ) == 1 and isinstance (value [0 ], ( six .string_types , type ( None )) ):
456456 value = unArrayizeValue (value )
457457 elif len (value ) > 1 and stopLimit == 1 :
458458 value = [value ]
Original file line number Diff line number Diff line change 99from lib .core .common import dataToOutFile
1010from lib .core .common import decodeDbmsHexValue
1111from lib .core .common import getSQLSnippet
12+ from lib .core .common import isNoneValue
1213from lib .core .data import kb
1314from lib .core .data import logger
1415from lib .core .enums import CHARSET_TYPE
@@ -38,16 +39,15 @@ def readFile(self, remoteFile):
3839 fileContent = inject .getValue ("SELECT RAWTOHEX(OSREADFILE('%s')) FROM DUAL" % remoteFile , charsetType = CHARSET_TYPE .HEXADECIMAL )
3940 kb .fileReadMode = False
4041
41- if fileContent is not None :
42+ if not isNoneValue ( fileContent ) :
4243 fileContent = decodeDbmsHexValue (fileContent , True )
4344
4445 if fileContent :
4546 localFilePath = dataToOutFile (remoteFile , fileContent )
46-
4747 localFilePaths .append (localFilePath )
48- else :
49- errMsg = "no data retrieved"
50- logger .error (errMsg )
48+ else :
49+ errMsg = "no data retrieved"
50+ logger .error (errMsg )
5151
5252 return localFilePaths
5353
You can’t perform that action at this time.
0 commit comments