From 1923ef691ef4dd3165215ca8d9357e9b61ef3b8c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 19 Jan 2013 16:06:46 +0000 Subject: [PATCH] just in case, add also the test case name inside the temp folder for debug purposes --- lib/core/testing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/testing.py b/lib/core/testing.py index 376747012..647035487 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -184,6 +184,10 @@ def liveTest(): logger.error(errMsg) + test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING) + test_case_fd.write(msg) + test_case_fd.close() + if failedParseOn: console_output_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "console_output"), "wb", UNICODE_ENCODING) console_output_fd.write(failedParseOn)