Skip to content

Commit 33ac2f9

Browse files
author
ekultek
committed
same as admin panel, full batch functionaility has been implemented
1 parent d5575b5 commit 33ac2f9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/attacks/xss_scan/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,17 @@ def main_xss(start_url, verbose=False, proxy=None, agent=None, tamper=None, batc
189189
lib.core.settings.logger.error(lib.core.settings.set_color(
190190
"host '{}' does not appear to be vulnerable to XSS attacks...".format(start_url)
191191
))
192+
question_msg = "would you like to keep the URL's saved for further testing"
192193
if not batch:
193194
save = lib.core.settings.prompt(
194-
"would you like to keep the URL's saved for further testing", opts="yN"
195+
question_msg, opts="yN"
195196
)
196-
if save.lower().startswith("n"):
197-
os.remove(filename)
197+
else:
198+
save = lib.core.settings.prompt(
199+
question_msg, opts="yN", default="n"
200+
)
201+
202+
if save.lower().startswith("n"):
203+
os.remove(filename)
198204
else:
199205
os.remove(filename)

0 commit comments

Comments
 (0)