Added some print statements and started using packet_processor

This commit is contained in:
Michael Scalzetti 2022-10-26 20:39:11 -04:00
parent 877801b855
commit d4f5fe70da

View File

@ -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()