Skip to content

Error in Ansible Runner #2854

@aconite33

Description

@aconite33

Describe the bug
When running a scan after a recent update, error occurs in Ansible for installing appropriate packages.

BBOT Command
Example: bbot -m httpx -t evilcorp.com

OS, BBOT Installation Method + Version
Ubuntu, pipenv + poetry install, dev branch

Logs/Screenshots

Traceback (most recent call last):
  File "/root/.local/share/virtualenvs/bbot-IFo4rpkg/bin/bbot", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/bbot/bbot/cli.py", line 314, in main
    asyncio.run(_main())
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/root/bbot/bbot/cli.py", line 148, in _main
    scan = Scanner(preset=preset)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/bbot/bbot/scanner/scanner.py", line 184, in __init__
    self.helpers.mkdir(self.temp_dir)
    ^^^^^^^^^^^^
  File "/root/bbot/bbot/scanner/scanner.py", line 933, in helpers
    return self.preset.helpers
           ^^^^^^^^^^^^^^^^^^^
  File "/root/bbot/bbot/scanner/preset/preset.py", line 600, in helpers
    from bbot.core.helpers.helper import ConfigAwareHelper
  File "/root/bbot/bbot/core/helpers/helper.py", line 16, in <module>
    from .depsinstaller import DepsInstaller
  File "/root/bbot/bbot/core/helpers/depsinstaller/__init__.py", line 1, in <module>
    from .installer import DepsInstaller
  File "/root/bbot/bbot/core/helpers/depsinstaller/installer.py", line 16, in <module>
    from ansible_runner.interface import run
  File "/root/.local/share/virtualenvs/bbot-IFo4rpkg/lib/python3.12/site-packages/ansible_runner/__init__.py", line 1, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

After installing setuptools package via pip, this allows BBOT to run with --force-deps to reinstall all required dependencies.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions