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

Skip to content

Commit e558040

Browse files
committed
minor fix to previous commit
1 parent d43b04c commit e558040

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/testing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ def liveTest():
140140
switches = dict(global_)
141141
value = ""
142142
vulnerable = True
143+
result = None
143144

144145
if case.hasAttribute("name"):
145146
name = case.getAttribute("name")
@@ -167,14 +168,14 @@ def liveTest():
167168
logger.info(msg)
168169

169170
try:
170-
runCase(switches, parse)
171+
result = runCase(switches, parse)
171172
except SqlmapNotVulnerableException:
172173
vulnerable = False
173174

174175
test_case_fd = codecs.open(os.path.join(paths.SQLMAP_OUTPUT_PATH, "test_case"), "wb", UNICODE_ENCODING)
175176
test_case_fd.write("%s\n" % name)
176177

177-
if result:
178+
if result is True:
178179
logger.info("test passed")
179180
cleanCase()
180181
else:

0 commit comments

Comments
 (0)