mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Update related to #5389
This commit is contained in:
parent
0fba9b13b3
commit
60bb973c11
|
@ -20,7 +20,7 @@ from thirdparty import six
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.7.4.6"
|
VERSION = "1.7.4.7"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -7,7 +7,6 @@ See the file 'LICENSE' for copying permission
|
||||||
|
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
|
|
||||||
import logging
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from lib.core.common import Backend
|
from lib.core.common import Backend
|
||||||
|
@ -387,9 +386,6 @@ def fileExists(pathFile):
|
||||||
kb.locks.io.release()
|
kb.locks.io.release()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
pushValue(logger.getEffectiveLevel())
|
|
||||||
logger.setLevel(logging.CRITICAL)
|
|
||||||
|
|
||||||
runThreads(conf.threads, fileExistsThread, threadChoice=True)
|
runThreads(conf.threads, fileExistsThread, threadChoice=True)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
warnMsg = "user aborted during file existence "
|
warnMsg = "user aborted during file existence "
|
||||||
|
@ -397,7 +393,6 @@ def fileExists(pathFile):
|
||||||
logger.warning(warnMsg)
|
logger.warning(warnMsg)
|
||||||
finally:
|
finally:
|
||||||
kb.bruteMode = False
|
kb.bruteMode = False
|
||||||
logger.setLevel(popValue())
|
|
||||||
|
|
||||||
clearConsoleLine(True)
|
clearConsoleLine(True)
|
||||||
dataToStdout("\n")
|
dataToStdout("\n")
|
||||||
|
|
|
@ -222,13 +222,13 @@ class Filesystem(object):
|
||||||
|
|
||||||
if conf.direct or isStackingAvailable():
|
if conf.direct or isStackingAvailable():
|
||||||
if isStackingAvailable():
|
if isStackingAvailable():
|
||||||
debugMsg = "going to read the file with stacked query SQL "
|
debugMsg = "going to try to read the file with stacked query SQL "
|
||||||
debugMsg += "injection technique"
|
debugMsg += "injection technique"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
fileContent = self.stackedReadFile(remoteFile)
|
fileContent = self.stackedReadFile(remoteFile)
|
||||||
elif Backend.isDbms(DBMS.MYSQL):
|
elif Backend.isDbms(DBMS.MYSQL):
|
||||||
debugMsg = "going to read the file with a non-stacked query "
|
debugMsg = "going to try to read the file with non-stacked query "
|
||||||
debugMsg += "SQL injection technique"
|
debugMsg += "SQL injection technique"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user