File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments