diff --git a/src/main.py b/src/main.py index 962c0c2..7c5b686 100755 --- a/src/main.py +++ b/src/main.py @@ -1,11 +1,18 @@ #! /usr/bin/python -import reporter, sniffer +import reporter, sniffer, packet_processer def main(): + print("Starting up...") snfr = sniffer.Sniffer("walfa0") - #print(snfr.sniff(5)) - data = snfr.parse_sniff("/tmp/SUSTMP_hyMIo/cap-1666770829-01.csv") - snfr.destroy_sniffs() + + print("Sniffing...") + ap_data, client_data = snfr.sniff(120) + #ap_data, client_data = snfr.parse_sniff("/tmp/SUSTMP_csMIF/cap-1666824383-01.csv")# "/tmp/test/test-01.csv") + print("Parsing...") + print( len(packet_processer.get_unique_clients_packets(client_data)) ) + + #print("Cleaning up...") + #snfr.destroy_sniffs() if __name__ == "__main__": main() \ No newline at end of file