Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4727589

Browse files
committed
code consistency
1 parent 515be4e commit 4727589

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/bigarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def index(self, value):
5858
return ValueError, "%s is not in list" % value
5959

6060
def _dump(self, value):
61-
handle, filename = tempfile.mkstemp()
61+
handle, filename = tempfile.mkstemp(prefix="sqlmapba-")
6262
self.filenames.add(filename)
6363
os.close(handle)
6464
with open(filename, "w+b") as fp:

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3380,7 +3380,7 @@ def resetCookieJar(cookieJar):
33803380

33813381
content = readCachedFileContent(conf.loadCookies)
33823382
lines = filter(None, (line.strip() for line in content.split("\n") if not line.startswith('#')))
3383-
handle, filename = tempfile.mkstemp()
3383+
handle, filename = tempfile.mkstemp(prefix="sqlmapcj-")
33843384
os.close(handle)
33853385

33863386
with open(filename, "w+b") as f:

lib/core/target.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _createTargetDirs():
467467
try:
468468
os.makedirs(paths.SQLMAP_OUTPUT_PATH, 0755)
469469
except OSError, ex:
470-
tempDir = tempfile.mkdtemp(prefix='output')
470+
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
471471
warnMsg = "unable to create default root output directory "
472472
warnMsg += "'%s' (%s). " % (paths.SQLMAP_OUTPUT_PATH, ex)
473473
warnMsg += "using temporary directory '%s' instead" % tempDir
@@ -481,7 +481,7 @@ def _createTargetDirs():
481481
try:
482482
os.makedirs(conf.outputPath, 0755)
483483
except OSError, ex:
484-
tempDir = tempfile.mkdtemp(prefix='output')
484+
tempDir = tempfile.mkdtemp(prefix="sqlmapoutput")
485485
warnMsg = "unable to create output directory "
486486
warnMsg += "'%s' (%s). " % (conf.outputPath, ex)
487487
warnMsg += "using temporary directory '%s' instead" % tempDir

0 commit comments

Comments
 (0)