From 5228f336da4af2c9902207a91f94f2c874d944d8 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 22 Dec 2010 13:15:44 +0000 Subject: [PATCH] Minor fix for ctrl+c during detection phase --- lib/controller/controller.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index d2308f3f8..0b68c907f 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -353,13 +353,13 @@ def start(): proceed = not kb.endDetection - # In case when user wants to end detection phase (Ctrl+C) - if not proceed: - break - if injection is not None and injection.place is not None: kb.injections.append(injection) + # In case when user wants to end detection phase (Ctrl+C) + if not proceed: + break + msg = "%s parameter '%s' " % (injection.place, injection.parameter) msg += "is vulnerable. Do you want to keep testing the others? [y/N] " test = readInput(msg, default="N")