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

Method _check_auth_configured

shared.py:479–493  ·  view source on GitHub ↗

Check if authentication is configured by looking for the auth database.

(self)

Source from the content-addressed store, hash-verified

477 loot_credentials_dir = context.get('credentials_dir') or self._default_crackedpwddir
478 self._update_loot_paths(loot_data_dir, loot_credentials_dir)
479 scan_results_dir = context.get('scan_results_dir') or self._default_scan_results_dir
480 vulnerabilities_dir = context.get('vulnerabilities_dir') or self._default_vulnerabilities_dir
481 self._update_output_paths(scan_results_dir, vulnerabilities_dir)
482 if configure_db and hasattr(self, 'db'):
483 self._configure_database()
484
485 def _configure_database(self):
486 """Point the singleton database at the active network store."""
487 if get_db is None or self._pager_mode:
488 return
489 if not self.current_network_dir or not self.current_network_db_path:
490 return
491 db = get_db(currentdir=self.currentdir)
492 db.configure_storage(self.current_network_dir, self.current_network_db_path)
493 self.db = db
494
495 def _check_auth_configured(self):
496 """Check if authentication is configured by looking for the auth database."""

Callers 1

__init__Method · 0.95

Calls 5

cursorMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45
fetchoneMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected