From 33ac2f961a9e7683e650281dd2dfd074e9b805ac Mon Sep 17 00:00:00 2001 From: ekultek Date: Fri, 10 Nov 2017 10:59:16 -0600 Subject: [PATCH] same as admin panel, full batch functionaility has been implemented --- lib/attacks/xss_scan/__init__.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/attacks/xss_scan/__init__.py b/lib/attacks/xss_scan/__init__.py index 1d4bfe8..152d201 100644 --- a/lib/attacks/xss_scan/__init__.py +++ b/lib/attacks/xss_scan/__init__.py @@ -189,11 +189,17 @@ def main_xss(start_url, verbose=False, proxy=None, agent=None, tamper=None, batc lib.core.settings.logger.error(lib.core.settings.set_color( "host '{}' does not appear to be vulnerable to XSS attacks...".format(start_url) )) + question_msg = "would you like to keep the URL's saved for further testing" if not batch: save = lib.core.settings.prompt( - "would you like to keep the URL's saved for further testing", opts="yN" + question_msg, opts="yN" ) - if save.lower().startswith("n"): - os.remove(filename) + else: + save = lib.core.settings.prompt( + question_msg, opts="yN", default="n" + ) + + if save.lower().startswith("n"): + os.remove(filename) else: os.remove(filename) \ No newline at end of file