Skip to content

TODO list courtesy of @Aconite33 #40

@TheTechromancer

Description

@TheTechromancer
  • Make sure every cli 'list' can filter by host, domain, and target
  • Update top level cli command help to include sub commands
  • Feature: Delete scan (including events)
  • Add module: URLs
  • Add module: Web screenshots
  • Support builtin presets (QoL Feature Request #47)
  • Speed up target loading
    • While reworking targets, should keep stats on event types (e.g. this target has 12 domains, 4 ips, and 6 URLs))
  • Add CLI date filtering to activities, events
  • Associate activities to a scan and allow querying by scans (so you can see exactly what new stuff the scan found)
  • Tests for what happens when you try to ingest 2 scans with the same name
  • Error when using | head:
$ bbctl activity list --json | head | jq

[CRITICAL] Traceback (most recent call last):
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpx/_client.py", line 1590, in stream
    yield response
  File "/home/bls/Downloads/code/bbot-server-proto/bbot_server/interfaces/http.py", line 133, in _http_stream
    yield model_obj
GeneratorExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bls/Downloads/code/bbot-server-proto/bbot_server/interfaces/http.py", line 309, in _handle_httpx_error
    yield
  File "/home/bls/Downloads/code/bbot-server-proto/bbot_server/interfaces/http.py", line 114, in _http_stream
    async with self.client.stream(method=method, url=_url, json=body) as response:
               ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/contextlib.py", line 235, in __aexit__
    await self.gen.athrow(value)
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpx/_client.py", line 1592, in stream
    await response.aclose()
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpx/_models.py", line 1076, in aclose
    await self.stream.aclose()
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpx/_client.py", line 182, in aclose
    await self._stream.aclose()
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpx/_transports/default.py", line 276, in aclose
    await self._httpcore_stream.aclose()
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpcore/_async/connection_pool.py", line 412, in aclose
    with AsyncShieldCancellation():
         ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpcore/_synchronization.py", line 203, in __init__
    self._backend = current_async_library()
                    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/httpcore/_synchronization.py", line 30, in current_async_library
    environment = sniffio.current_async_library()
  File "/home/bls/.cache/pypoetry/virtualenvs/bbot-server-DmHQwTaK-py3.13/lib/python3.13/site-packages/sniffio/_impl.py", line 93, in current_async_library
    raise AsyncLibraryNotFoundError(
        "unknown async library, or not in async context"
    )
sniffio._impl.AsyncLibraryNotFoundError: unknown async library, or not in async context

Exception ignored in: <async_generator object http._http_stream at 0x7f6679505fe0>
Traceback (most recent call last):
  File "/home/bls/Downloads/code/bbot-server-proto/bbot_server/interfaces/http.py", line 112, in _http_stream
    with self._handle_httpx_error(method, _url):
  File "/usr/lib/python3.13/contextlib.py", line 162, in __exit__
    self.gen.throw(value)
  File "/home/bls/Downloads/code/bbot-server-proto/bbot_server/interfaces/http.py", line 316, in _handle_httpx_error
    raise BBOTServerError(f"Error making {method} request -> {_url}: {e}") from e
bbot_server.errors.BBOTServerError: Error making GET request -> http://localhost:8807/v1/activity/list: unknown async library, or not in async context

FYSA @aconite33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions