Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0e409d4

Browse files
committed
Fixes #3740
1 parent ceb7181 commit 0e409d4

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/techniques/error/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

plugins/dbms/oracle/filesystem.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from lib.core.common import dataToOutFile
1010
from lib.core.common import decodeDbmsHexValue
1111
from lib.core.common import getSQLSnippet
12+
from lib.core.common import isNoneValue
1213
from lib.core.data import kb
1314
from lib.core.data import logger
1415
from 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

0 commit comments

Comments
 (0)