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

Method write_data

shared.py:1949–1958  ·  view source on GitHub ↗

DEPRECATED: CSV write operations no longer supported. All data is now stored in SQLite database. Use db.upsert_host() to write host data. This method is kept for backward compatibility but does nothing.

(self, data)

Source from the content-addressed store, hash-verified

1947
1948 def set_latest_scan_results(self, scan_data):
1949 """Store fresh scan results scoped to the currently active network."""
1950 slug = self._slug_for_ssid(self.active_network_ssid)
1951 with self._scan_results_lock:
1952 self._latest_scan_results[slug] = {
1953 'data': scan_data,
1954 'timestamp': time.time(),
1955 'ssid': self.active_network_ssid,
1956 }
1957 logger.info(
1958 f"📋 Stored {len(scan_data or []) if scan_data else 0} hosts for network slug '{slug}'"
1959 )
1960
1961 def get_latest_scan_results(self, ssid=None):

Callers 1

execute_manual_attackMethod · 0.80

Calls 2

warningMethod · 0.80
debugMethod · 0.80

Tested by

no test coverage detected