MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _init_database

Method _init_database

advanced_vuln_scanner.py:504–512  ·  view source on GitHub ↗

Initialize database connection for scan persistence

(self)

Source from the content-addressed store, hash-verified

502 self._max_workers = min(caps.capabilities.cpu_cores, 8)
503
504 # Database manager reference
505 self._db = None
506 self._init_database()
507
508 # Recover any interrupted scans on startup
509 self._recover_interrupted_scans()
510
511 # Watchdog thread: auto-starts ZAP and keeps it alive.
512 # ZAP is the memory-hungry exception among the scanners, so it only
513 # runs on server-class boards (see SystemCapabilities.zap_enabled) -
514 # don't spin up its ~1GB Java daemon on a 4GB Pi where the rest of the
515 # Advanced Vuln tab still works fine.

Callers 1

__init__Method · 0.95

Calls 3

get_dbFunction · 0.90
infoMethod · 0.80
warningMethod · 0.80

Tested by

no test coverage detected