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

Method _refresh_credential_files

shared.py:525–532  ·  view source on GitHub ↗

Keep credential CSV paths aligned with the active credential directory.

(self)

Source from the content-addressed store, hash-verified

523 self.datastolendir = data_stolen_dir
524 if credentials_dir:
525 os.makedirs(credentials_dir, exist_ok=True)
526 self.crackedpwddir = credentials_dir
527 self.crackedpwd_dir = self.crackedpwddir # legacy attribute name used by web UI
528 self._refresh_credential_files()
529
530 def _update_output_paths(self, scan_results_dir, vulnerabilities_dir):
531 """Switch scan result and vulnerability dirs to the active network's paths."""
532 if scan_results_dir:
533 os.makedirs(scan_results_dir, exist_ok=True)
534 self.scan_results_dir = scan_results_dir
535 if vulnerabilities_dir:

Callers 2

initialize_pathsMethod · 0.95
_update_loot_pathsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected