Skip to content

Commit

Permalink
Merge pull request #1065 from blacklanternsecurity/log-bbot-version
Browse files Browse the repository at this point in the history
Log bbot version, start time, and full command at the beginning of every scan
  • Loading branch information
TheTechromancer authored Feb 6, 2024
2 parents 2193fe5 + e980afd commit ac53b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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

0 comments on commit ac53b32

Please sign in to comment.