Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log bbot version, start time, and full command at the beginning of every scan #1065

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bbot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ async def _main():
sys.exit(0)
return

log.verbose(f'Command: {" ".join(sys.argv)}')

if options.agent_mode:
from bbot.agent import Agent

Expand Down
3 changes: 3 additions & 0 deletions bbot/scanner/scanner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import re
import sys
import asyncio
import logging
import traceback
Expand All @@ -12,6 +13,7 @@
from collections import OrderedDict
from concurrent.futures import ProcessPoolExecutor

from bbot import __version__
from bbot import config as bbot_config

from .target import Target
Expand Down Expand Up @@ -329,6 +331,7 @@ async def async_start(self):
await self._prep()

self._start_log_handlers()
log.verbose(f'Ran BBOT {__version__} at {scan_start_time}, command: {" ".join(sys.argv)}')

if not self.target:
self.warning(f"No scan targets specified")
Expand Down
Loading