mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-12 02:22:55 +00:00
Minor patch
This commit is contained in:
@@ -20,7 +20,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.8.2"
|
||||
VERSION = "1.10.8.3"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
||||
@@ -48,6 +48,8 @@ class Filesystem(object):
|
||||
self.tblField = "data"
|
||||
|
||||
def _checkFileLength(self, localFile, remoteFile, fileRead=False):
|
||||
lengthQuery = None
|
||||
|
||||
if Backend.isDbms(DBMS.MYSQL):
|
||||
lengthQuery = "LENGTH(LOAD_FILE('%s'))" % remoteFile
|
||||
|
||||
@@ -70,6 +72,9 @@ class Filesystem(object):
|
||||
if fileRead and Backend.isDbms(DBMS.PGSQL):
|
||||
logger.info("length of read file '%s' cannot be checked on PostgreSQL" % remoteFile)
|
||||
sameFile = True
|
||||
elif lengthQuery is None:
|
||||
logger.info("length of the %s file '%s' cannot be checked on %s" % ("read" if fileRead else "written", remoteFile, Backend.getDbms()))
|
||||
sameFile = True
|
||||
else:
|
||||
logger.debug("checking the length of the remote file '%s'" % remoteFile)
|
||||
remoteFileSize = inject.getValue(lengthQuery, resumeValue=False, expected=EXPECTED.INT, charsetType=CHARSET_TYPE.DIGITS)
|
||||
|
||||
Reference in New Issue
Block a user