mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Patch for an Issue #1105
This commit is contained in:
parent
8e03f4db0f
commit
06ff8b3a16
4 changed files with 16 additions and 12 deletions
|
|
@ -15,6 +15,7 @@ import re
|
|||
import socket
|
||||
import string
|
||||
import sys
|
||||
import tempfile
|
||||
import threading
|
||||
import time
|
||||
import urllib2
|
||||
|
|
@ -1437,6 +1438,17 @@ def _checkDependencies():
|
|||
if conf.dependencies:
|
||||
checkDependencies()
|
||||
|
||||
def _createTemporaryDirectory():
|
||||
"""
|
||||
Creates temporary directory for this run.
|
||||
"""
|
||||
|
||||
if not os.path.isdir(tempfile.gettempdir()):
|
||||
os.makedirs(tempfile.gettempdir())
|
||||
tempfile.tempdir = tempfile.mkdtemp(prefix="sqlmap", suffix=str(os.getpid()))
|
||||
if not os.path.isdir(tempfile.tempdir):
|
||||
os.makedirs(tempfile.tempdir)
|
||||
|
||||
def _cleanupOptions():
|
||||
"""
|
||||
Cleanup configuration attributes.
|
||||
|
|
@ -2332,6 +2344,7 @@ def init():
|
|||
_cleanupOptions()
|
||||
_purgeOutput()
|
||||
_checkDependencies()
|
||||
_createTemporaryDirectory()
|
||||
_basicOptionValidation()
|
||||
_setProxyList()
|
||||
_setTorProxySettings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue