mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-28 20:52:43 +00:00
Minor patch
This commit is contained in:
parent
96fec6864e
commit
a9f5d30b4a
2 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue