Keep credential CSV paths aligned with the active credential directory.
(self)
| 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: |
no outgoing calls
no test coverage detected