From 28dd7d61f011242b7afb63b05eb24914644dc77d Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Mon, 13 Nov 2023 09:39:55 -0500 Subject: [PATCH 1/2] cancel tasks when killing module --- bbot/scanner/manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bbot/scanner/manager.py b/bbot/scanner/manager.py index 572ce4cd1..eeef447fb 100644 --- a/bbot/scanner/manager.py +++ b/bbot/scanner/manager.py @@ -410,6 +410,7 @@ async def _worker_loop(self): def kill_module(self, module_name, message=None): module = self.scan.modules[module_name] module.set_error_state(message=message, clear_outgoing_queue=True) + self.scan.helpers.cancel_tasks_sync(module._tasks) @property def modules_by_priority(self): From 31c54b4239f7aa7677a35cda8de7b9c6606aa3b3 Mon Sep 17 00:00:00 2001 From: TheTechromancer Date: Mon, 13 Nov 2023 10:38:09 -0500 Subject: [PATCH 2/2] update documentation --- docs/scanning/tips_and_tricks.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/scanning/tips_and_tricks.md b/docs/scanning/tips_and_tricks.md index aaafb15ca..0572bedb2 100644 --- a/docs/scanning/tips_and_tricks.md +++ b/docs/scanning/tips_and_tricks.md @@ -7,6 +7,11 @@ Press enter during a BBOT scan to change the log level. This will allow you to s +## Kill Individual Module During Scan +Sometimes a certain module can get stuck or slow down the scan. If this happens and you want to kill it, just type "`kill `" in the terminal and press enter. This will kill and disable the module for the rest of the scan. + + + ## Common Config Changes ### Boost Massdns Thread Count