Commit graph

195 commits

Author SHA1 Message Date
Yaro Kasear
67213136e1 Add final AP count summary to main function and remove debug print for beacon frames 2025-05-01 13:03:45 -05:00
Yaro Kasear
c3df0d124f Enhance AP detection by counting beacon frames before adding to the list of seen APs 2025-05-01 11:21:40 -05:00
Yaro Kasear
47b7f4f818 Add debug logging for beacon frames in handle_packet to track AP SSIDs 2025-05-01 11:14:24 -05:00
Yaro Kasear
a81321436a Refactor handle_packet to detect APs using only beacon frames and improve unicast client counting logic. 2025-05-01 11:03:29 -05:00
Yaro Kasear
7be1b48831 Refactor client tracking in handle_packet to improve clarity and add debug logging for counted clients. 2025-05-01 10:52:20 -05:00
Yaro Kasear
021ea90d9a Refactor client tracking in handle_packet to simplify logic and ensure unicast clients are counted correctly, excluding the target AP BSSID. 2025-05-01 10:45:26 -05:00
Yaro Kasear
7d9e33e9ea Fix regex in get_connected_bssid to match MAC addresses case-insensitively and ensure consistent formatting. 2025-05-01 10:28:55 -05:00
Yaro Kasear
9665180077 Enhance BSSID retrieval in get_connected_bssid function using regex for improved accuracy; clean up imports. 2025-05-01 10:25:21 -05:00
Yaro Kasear
7daa6e1543 Refactor ap_clients initialization to use nested defaultdict for improved structure 2025-05-01 10:22:01 -05:00
Yaro Kasear
458c69cca4 Remove redundant client-AP relationship guessing logic from packet handling 2025-05-01 10:18:16 -05:00
Yaro Kasear
c12bdb80e3 Refactor client tracking to use defaultdict for improved counting; update metrics to reflect active clients per AP. 2025-05-01 10:15:40 -05:00
Yaro Kasear
d24157ba52 Handle potential None value for addr2 in packet processing 2025-05-01 10:06:08 -05:00
Yaro Kasear
4517f0cc95 Refactor packet handling to improve client tracking and AP relationship mapping; add function to get connected BSSID. 2025-05-01 10:03:39 -05:00
Yaro Kasear
2da759bf39 Change interface type to monitor in reset_interface; update main function to improve clarity. 2025-05-01 09:19:18 -05:00
Yaro Kasear
17683f5bd5 Add interface reset functionality to main loop; ensure proper state before and after sniffing 2025-05-01 09:16:02 -05:00
Yaro Kasear
de6f0b037b Enhance client tracking and AP relationship mapping in handle_packet; update metrics to reflect active clients per AP. 2025-05-01 09:06:18 -05:00
Yaro Kasear
50aad9ef15 Refactor listener.py to enhance channel syncing and metrics logging; add command-line arguments for interface selection and output file. 2025-04-30 16:15:39 -05:00
Yaro Kasear
3b03e5c048 Add channel tracking and periodic check in main loop 2025-04-30 15:20:43 -05:00
Yaro Kasear
e93addb4c0 Add channel change detection and update logic in main loop 2025-04-30 15:18:48 -05:00
Yaro Kasear
d0d7dd473f Add functions to get and set the current channel for the network interface 2025-04-30 15:03:42 -05:00
Yaro Kasear
2586d5fcca Add shebang line to listener.py for improved script execution 2025-04-30 14:36:10 -05:00
Yaro Kasear
f360ae79e8 Refactor settings loading to use auto-detection and improve error handling 2025-04-30 14:34:11 -05:00
Yaro Kasear
0e49e636ce Refactor environment variable loading to improve error handling and clarity 2025-04-30 14:27:39 -05:00
Yaro Kasear
fa0a1fd930 Add export keyword to all environment variables in settings.env.default 2025-04-30 14:19:30 -05:00
Yaro Kasear
2ff5a192ca Rename INTERFACE to LISTEN_INTERFACE for consistency and update settings.env.default 2025-04-30 14:09:26 -05:00
Yaro Kasear
ae55141efe Update .gitignore to include __pycache__ directory and remove compiled Python files 2025-04-30 14:06:06 -05:00
a04ca7960f Make listener.py executable. 2025-04-30 13:59:15 -05:00
Yaro Kasear
2b328b7368 Refactor packet sniffing to run in a loop with a longer timeout for improved performance 2025-04-30 13:58:09 -05:00
Yaro Kasear
2a227d7222 Add support for --no-enrich flag in runtest.sh to skip data enrichment 2025-04-30 13:50:59 -05:00
Yaro Kasear
027890896e Remove redundant debug output in Cisco client reporting and average calculation for improved clarity 2025-04-29 14:50:40 -05:00
Yaro Kasear
e81b0fefd4 Refactor Cisco client data extraction in management frame processing to improve clarity and add debug output for client reports 2025-04-29 14:33:45 -05:00
Yaro Kasear
5ba7e701d5 Add debug output for Cisco SSIDs and BSSID-to-SSID mapping in query_metrics 2025-04-29 14:19:43 -05:00
Yaro Kasear
5e11cfcc80 Refactor debug output in Cisco client tracking for improved clarity and consistency 2025-04-29 14:15:23 -05:00
Yaro Kasear
d9e8a8eac9 Add debug statements in _cisco_avg_clients for improved tracing of Cisco client data queries 2025-04-29 14:10:00 -05:00
Yaro Kasear
44f51d7d0e Refactor Cisco client tracking in IndexedCapture to store timestamps with client counts and update metrics functions for time range filtering 2025-04-29 13:59:06 -05:00
Yaro Kasear
6c231a0830 Enhance SSID tracking in query_metrics by introducing window-based data structures for improved signal statistics and debugging output 2025-04-29 13:34:03 -05:00
Yaro Kasear
21fcc807ad Refactor debug statements in _count_unlinked_devices and related logic for clarity and efficiency 2025-04-29 13:00:29 -05:00
Yaro Kasear
6958e22088 Refactor ghost client detection in _count_unlinked_devices to improve clarity and accuracy 2025-04-29 12:53:53 -05:00
Yaro Kasear
a1cc33e842 Add type assertion and debug statements in query_metrics for AP channel validation 2025-04-29 11:43:14 -05:00
Yaro Kasear
92015c4ba7 Add debug print statements for packet subtype and AP/client tracking in IndexedCapture 2025-04-29 11:30:42 -05:00
Yaro Kasear
a1aefedaff Add debug print statements to query_metrics for improved packet tracking 2025-04-29 11:20:36 -05:00
Yaro Kasear
c6fb5ca049 Add debug print statements to query_metrics for packet analysis insights 2025-04-29 11:07:37 -05:00
Yaro Kasear
6c8f542448 Remove debugging print statements from IndexedCapture to clean up code 2025-04-29 10:56:59 -05:00
Yaro Kasear
32488ccbe2 Add debug print statements to IndexedCapture for packet indexing insights 2025-04-29 10:32:43 -05:00
Yaro Kasear
dca27cf034 Revert a fix that did not work. 2025-04-29 10:28:32 -05:00
Yaro Kasear
6ecb49de99 Refactor query_metrics to utilize packet-specific data for client and AP counts, enhancing accuracy and performance 2025-04-29 10:12:20 -05:00
Yaro Kasear
2a13eed6f9 Add debug print statement to query_metrics for packet count in time range 2025-04-29 10:04:30 -05:00
Yaro Kasear
deedca8d2f Enhance pcap analysis by loading and indexing capture file once, improving efficiency and adding dummy SSID summary generation for future compatibility 2025-04-29 09:43:44 -05:00
Yaro Kasear
f9837f01e8 Refactor pcap analysis by introducing IndexedCapture for efficient data handling and querying 2025-04-29 09:36:38 -05:00
Yaro Kasear
24d9783bb9 Fix display filter typo and add error handling for packet filtering in analyze_pcap function 2025-04-28 16:08:05 -05:00