mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue