mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
Patch for an Issue #1142
This commit is contained in:
parent
fd632e5ada
commit
5400bb2c95
1 changed files with 5 additions and 1 deletions
|
|
@ -1458,7 +1458,11 @@ def _createTemporaryDirectory():
|
|||
errMsg += "writeable by the current user"
|
||||
raise SqlmapSystemException, errMsg
|
||||
|
||||
kb.tempDir = tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
|
||||
if "sqlmap" not in (tempfile.tempdir or ""):
|
||||
tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
|
||||
|
||||
kb.tempDir = tempfile.tempdir
|
||||
|
||||
if not os.path.isdir(tempfile.tempdir):
|
||||
os.makedirs(tempfile.tempdir)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue