()
| 31 | |
| 32 | |
| 33 | def _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 | |
| 50 | def test_has_session_false_when_empty(store): |
no test coverage detected