From 4827dc65edf5251275e1336ec58f7640f8e3898e Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Mon, 7 Oct 2019 14:12:22 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/plugins/default/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pwnagotchi/plugins/default/api.py b/pwnagotchi/plugins/default/api.py index eae9343..b912bb8 100644 --- a/pwnagotchi/plugins/default/api.py +++ b/pwnagotchi/plugins/default/api.py @@ -95,6 +95,8 @@ def parse_pcap(filename): for pkt in rdpcap(filename): info = parse_packet(pkt, info) + if 'essid' in info and info['essid'] is not None and 'bssid' in info and info['bssid'] is not None: + break bssid = info['bssid'] if 'bssid' in info else None essid = info['essid'] if 'essid' in info else None