File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments