From e558040810859277e6d50d4df33d037a53606ac3 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 21 Jan 2013 17:10:56 +0000 Subject: [PATCH] minor fix to previous commit --- lib/core/testing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/testing.py b/lib/core/testing.py index e229ea3ca..137b0a7fb 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -140,6 +140,7 @@ def liveTest(): switches = dict(global_) value = "" vulnerable = True + result = None if case.hasAttribute("name"): name = case.getAttribute("name") @@ -167,14 +168,14 @@ def liveTest(): logger.info(msg) try: - runCase(switches, parse) + result = runCase(switches, parse) except SqlmapNotVulnerableException: vulnerable = False test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING) test_case_fd.write("%s\n" % name) - if result: + if result is True: logger.info("test passed") cleanCase() else: