MCPcopy
hub / github.com/srixivas/PcapXray / _seed_memory

Function _seed_memory

Test/test_sqlite_store.py:33–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def _seed_memory():
34 memory.packet_db["1.2.3.4/5.6.7.8/443"] = PacketSession(
35 Ethernet={"src": "aa:bb:cc:dd:ee:ff", "dst": "11:22:33:44:55:66"},
36 Payload={"forward": ["hello"], "reverse": ["world"]},
37 covert=False,
38 file_signatures=["PDF"],
39 )
40 memory.lan_hosts["aa:bb:cc:dd:ee:ff"] = LanHost(
41 ip="1.2.3.4", device_vendor="Acme", vendor_address="123 St", node="1.2.3.4\naa:bb"
42 )
43 memory.destination_hosts["5.6.7.8"] = DestinationHost(
44 mac="11:22:33:44:55:66", domain_name="example.com", device_vendor="ExampleCorp"
45 )
46 memory.possible_tor_traffic = ["1.2.3.4/5.6.7.8/443"]
47 memory.possible_mal_traffic = ["1.2.3.4/5.6.7.8/443"]
48
49
50def test_has_session_false_when_empty(store):

Calls 3

PacketSessionClass · 0.90
LanHostClass · 0.90
DestinationHostClass · 0.90

Tested by

no test coverage detected