mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-30 01:43:22 +03:00
Implementing undocumented way how to retrieve w+ temporary directory name on MsSQL (suggested by Vlado Velichkovski)
This commit is contained in:
parent
742c66fad2
commit
95998e3989
|
@ -5,6 +5,7 @@ Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
|
||||||
See the file 'doc/COPYING' for copying permission
|
See the file 'doc/COPYING' for copying permission
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import ntpath
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from lib.core.common import Backend
|
from lib.core.common import Backend
|
||||||
|
@ -36,6 +37,11 @@ class Miscellaneous:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def getRemoteTempPath(self):
|
def getRemoteTempPath(self):
|
||||||
|
if not conf.tmpPath and Backend.isDbms(DBMS.MSSQL):
|
||||||
|
_ = unArrayizeValue(inject.getValue("SELECT SERVERPROPERTY('ErrorLogFileName')", safeCharEncode=False))
|
||||||
|
if _:
|
||||||
|
conf.tmpPath = ntpath.dirname(_)
|
||||||
|
|
||||||
if not conf.tmpPath:
|
if not conf.tmpPath:
|
||||||
if Backend.isOs(OS.WINDOWS):
|
if Backend.isOs(OS.WINDOWS):
|
||||||
if conf.direct:
|
if conf.direct:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user