MCPcopy Create free account
hub / github.com/blacklanternsecurity/bbot / main

Function main

bbot/cli.py:307–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306
307def main():
308 import asyncio
309 import traceback
310 from bbot.core import CORE
311
312 global scan_name
313 try:
314 asyncio.run(_main())
315 except asyncio.CancelledError:
316 if CORE.logger.log_level <= logging.DEBUG:
317 log_to_stderr(traceback.format_exc(), level="DEBUG")
318 except KeyboardInterrupt:
319 msg = "Interrupted"
320 if scan_name:
321 msg = f"You killed {scan_name}"
322 log_to_stderr(msg, level="WARNING")
323 if CORE.logger.log_level <= logging.DEBUG:
324 log_to_stderr(traceback.format_exc(), level="DEBUG")
325 exit(1)
326
327
328if __name__ == "__main__":

Callers 1

cli.pyFile · 0.70

Calls 3

log_to_stderrFunction · 0.90
_mainFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…