Skip to content

Commit

Permalink
Merge pull request #841 from blacklanternsecurity/kill-modules
Browse files Browse the repository at this point in the history
Cancel tasks when killing modules
  • Loading branch information
TheTechromancer authored Nov 13, 2023
2 parents 9b25bb1 + 31c54b4 commit b096c7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bbot/scanner/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 5 additions & 0 deletions docs/scanning/tips_and_tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Press enter during a BBOT scan to change the log level. This will allow you to s

<img src="https://user-images.githubusercontent.com/20261699/224358855-9411cdc6-68a9-4cc4-828f-e30e4766101a.gif" style="max-width: 45em !important"/>

## 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 <module>`" in the terminal and press enter. This will kill and disable the module for the rest of the scan.

<img src="https://github.com/blacklanternsecurity/bbot/assets/20261699/61ad7123-8879-4c86-afdd-e96d7264b67c" style="max-width: 45em !important"/>

## Common Config Changes

### Boost Massdns Thread Count
Expand Down

0 comments on commit b096c7b

Please sign in to comment.