mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
added two debug messages for clarity
This commit is contained in:
parent
c6d29e093e
commit
d9e716b95d
|
@ -37,7 +37,13 @@ class Miscellaneous:
|
||||||
|
|
||||||
def getRemoteTempPath(self):
|
def getRemoteTempPath(self):
|
||||||
if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
|
if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
|
||||||
|
debugMsg = "identifying Microsoft SQL Server error log directory "
|
||||||
|
debugMsg += "that sqlmap will use to store temporary files with "
|
||||||
|
debugMsg += "commands' output"
|
||||||
|
logger.debugMsg(debugMsg)
|
||||||
|
|
||||||
_ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
|
_ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
|
||||||
|
|
||||||
if _:
|
if _:
|
||||||
conf.tmpPath = ntpath.dirname(_)
|
conf.tmpPath = ntpath.dirname(_)
|
||||||
|
|
||||||
|
@ -63,6 +69,9 @@ class Miscellaneous:
|
||||||
conf.tmpPath = normalizePath(conf.tmpPath)
|
conf.tmpPath = normalizePath(conf.tmpPath)
|
||||||
conf.tmpPath = ntToPosixSlashes(conf.tmpPath)
|
conf.tmpPath = ntToPosixSlashes(conf.tmpPath)
|
||||||
|
|
||||||
|
debugMsg = "going to use %s as temporary files directory" % conf.tmpPath
|
||||||
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)
|
hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)
|
||||||
|
|
||||||
return conf.tmpPath
|
return conf.tmpPath
|
||||||
|
|
Loading…
Reference in New Issue
Block a user