mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-18 05:57:23 +00:00
Minor patch
This commit is contained in:
parent
96fec6864e
commit
a9f5d30b4a
2 changed files with 6 additions and 1 deletions
|
|
@ -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