mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
minor improvement to temporary folder name
This commit is contained in:
parent
6a83eea587
commit
9d04ae5db5
|
@ -169,7 +169,7 @@ def liveTest():
|
||||||
msg = "running live test case: %s (%d/%d)" % (name, count, length)
|
msg = "running live test case: %s (%d/%d)" % (name, count, length)
|
||||||
logger.info(msg)
|
logger.info(msg)
|
||||||
|
|
||||||
initCase(switches)
|
initCase(switches, count)
|
||||||
|
|
||||||
test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING)
|
test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING)
|
||||||
test_case_fd.write("%s\n" % name)
|
test_case_fd.write("%s\n" % name)
|
||||||
|
@ -224,7 +224,7 @@ def liveTest():
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
def initCase(switches=None):
|
def initCase(switches, count):
|
||||||
global failedItem
|
global failedItem
|
||||||
global failedParseOn
|
global failedParseOn
|
||||||
global failedTraceBack
|
global failedTraceBack
|
||||||
|
@ -233,7 +233,7 @@ def initCase(switches=None):
|
||||||
failedParseOn = None
|
failedParseOn = None
|
||||||
failedTraceBack = None
|
failedTraceBack = None
|
||||||
|
|
||||||
paths.SQLMAP_OUTPUT_PATH = tempfile.mkdtemp(prefix="sqlmaptest-")
|
paths.SQLMAP_OUTPUT_PATH = tempfile.mkdtemp(prefix="sqlmaptest-%d-" % count)
|
||||||
paths.SQLMAP_DUMP_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "dump")
|
paths.SQLMAP_DUMP_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "dump")
|
||||||
paths.SQLMAP_FILES_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "files")
|
paths.SQLMAP_FILES_PATH = os.path.join(paths.SQLMAP_OUTPUT_PATH, "%s", "files")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user