Beispiel #1
0
def main():
    # draw example
    pcapfile = pcap_reader.PcapEngine('examples/torExample.pcap', "scapy")
    print("Reading Done....")
    details = communication_details_fetch.trafficDetailsFetch("sock")
    import sys
    print(sys.path[0])
    network = plotLan("test", sys.path[0])
Beispiel #2
0
def test_malicious_traffic_identifier():
    pcap_reader.PcapEngine(sys.path[0]+'examples/test.pcap', "scapy")
    communication_details_fetch.trafficDetailsFetch("sock")
    malicious_traffic_identifier.maliciousTrafficIdentifier()
    if memory.possible_mal_traffic:
        assert True
Beispiel #3
0
def test_communication_details_fetch():
    pcap_reader.PcapEngine(sys.path[0]+'examples/test.pcap', "scapy")
    communication_details_fetch.trafficDetailsFetch("sock")
    if memory.destination_hosts:
        assert True