From d4f5fe70da97a8896f64ad50405da0a9281c479c Mon Sep 17 00:00:00 2001 From: Michael Scalzetti Date: Wed, 26 Oct 2022 20:39:11 -0400 Subject: [PATCH] Added some print statements and started using packet_processor --- src/main.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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