Store active network metadata and optionally reconfigure storage.
(self, context, configure_db=True)
| 448 | """Files paths""" |
| 449 | # Files directly under configdir |
| 450 | self.shared_config_json = os.path.join(self.configdir, 'shared_config.json') |
| 451 | self.actions_file = os.path.join(self.configdir, 'actions.json') |
| 452 | # Files directly under resourcesdir |
| 453 | self.commentsfile = os.path.join(self.commentsdir, 'comments.json') |
| 454 | # Files directly under datadir |
| 455 | self.netkbfile = os.path.join(self.datadir, "netkb.csv") |
| 456 | self.livestatusfile = os.path.join(self.datadir, 'livestatus.csv') |
| 457 | self.gamification_file = os.path.join(self.datadir, 'gamification.json') |
| 458 | self.pwnagotchi_status_file = os.path.join(self.datadir, 'pwnagotchi_status.json') |
| 459 | # Files directly under vulnerabilities_dir (kept in sync via _update_output_paths) |
| 460 | self.vuln_summary_file = os.path.join(self.vulnerabilities_dir, 'vulnerability_summary.csv') |
| 461 | self.vuln_scan_progress_file = os.path.join(self.vulnerabilities_dir, 'scan_progress.json') |
| 462 | # Files directly under dictionarydir |
| 463 | self.usersfile = os.path.join(self.dictionarydir, "users.txt") |
| 464 | self.passwordsfile = os.path.join(self.dictionarydir, "passwords.txt") |
| 465 | # Files directly under crackedpwddir |
| 466 | self._refresh_credential_files() |
| 467 | self.crackedpwd_dir = self.crackedpwddir |
| 468 | #Files directly under logsdir |
| 469 | self.webconsolelog = os.path.join(self.logsdir, 'temp_log.txt') |
| 470 |
no test coverage detected