mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes leakage of sqlmap temporary directories
This commit is contained in:
parent
da65936a3c
commit
de10cff3e0
4 changed files with 13 additions and 10 deletions
|
|
@ -1657,6 +1657,8 @@ def _createTemporaryDirectory():
|
|||
errMsg += "temporary directory location ('%s')" % getSafeExString(ex)
|
||||
raise SqlmapSystemException(errMsg)
|
||||
|
||||
conf.tempDirs.append(tempfile.tempdir)
|
||||
|
||||
if six.PY3:
|
||||
_pympTempLeakPatch(kb.tempDir)
|
||||
|
||||
|
|
@ -1982,6 +1984,8 @@ def _setConfAttributes():
|
|||
conf.dbmsHandler = None
|
||||
conf.dnsServer = None
|
||||
conf.dumpPath = None
|
||||
conf.fileWriteType = None
|
||||
conf.HARCollectorFactory = None
|
||||
conf.hashDB = None
|
||||
conf.hashDBFile = None
|
||||
conf.httpCollector = None
|
||||
|
|
@ -1998,9 +2002,8 @@ def _setConfAttributes():
|
|||
conf.resultsFP = None
|
||||
conf.scheme = None
|
||||
conf.tests = []
|
||||
conf.tempDirs = []
|
||||
conf.trafficFP = None
|
||||
conf.HARCollectorFactory = None
|
||||
conf.fileWriteType = None
|
||||
|
||||
def _setKnowledgeBaseAttributes(flushAll=True):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.9.7.2"
|
||||
VERSION = "1.9.7.3"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue