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

Class IpDataFromMemory

actions/scanning.py:1350–1355  ·  view source on GitHub ↗

Simple data structure to hold scan results from database.

Source from the content-addressed store, hash-verified

1348 # Build ip_data structure from collected hosts (no CSV read)
1349 # MAC/host resolution: SQLITE DB ONLY
1350 class IpDataFromMemory:
1351 """Simple data structure to hold scan results from database."""
1352 def __init__(self, ip_hostname_list):
1353 self.ip_list = [item[0] for item in ip_hostname_list]
1354 self.hostname_list = [item[1] for item in ip_hostname_list]
1355 self.mac_list = [item[2] for item in ip_hostname_list]
1356
1357 self.ip_data = IpDataFromMemory(self.ip_hostname_list)
1358 self.total_ips = len(self.ip_data.ip_list)

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected