Skip to content

Commit d9e716b

Browse files
committed
added two debug messages for clarity
1 parent c6d29e0 commit d9e716b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

plugins/generic/misc.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ def __init__(self):
3737

3838
def getRemoteTempPath(self):
3939
if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
40+
debugMsg = "identifying Microsoft SQL Server error log directory "
41+
debugMsg += "that sqlmap will use to store temporary files with "
42+
debugMsg += "commands' output"
43+
logger.debugMsg(debugMsg)
44+
4045
_ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
46+
4147
if _:
4248
conf.tmpPath = ntpath.dirname(_)
4349

@@ -63,6 +69,9 @@ def getRemoteTempPath(self):
6369
conf.tmpPath = normalizePath(conf.tmpPath)
6470
conf.tmpPath = ntToPosixSlashes(conf.tmpPath)
6571

72+
debugMsg = "going to use %s as temporary files directory" % conf.tmpPath
73+
logger.debug(debugMsg)
74+
6675
hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)
6776

6877
return conf.tmpPath

0 commit comments

Comments
 (0)