Merge pull request #189 from dadav/fix/wpa-sec

Fix bug with gps.json files
This commit is contained in:
evilsocket 2019-10-06 21:22:36 +02:00 committed by GitHub
commit 27a4f6219d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ def on_internet_available(display, config, log):
if READY:
handshake_dir = config['bettercap']['handshakes']
handshake_filenames = os.listdir(handshake_dir)
handshake_paths = [os.path.join(handshake_dir, filename) for filename in handshake_filenames]
handshake_paths = [os.path.join(handshake_dir, filename) for filename in handshake_filenames if filename.endswith('.pcap')]
handshake_new = set(handshake_paths) - set(ALREADY_UPLOADED)
if handshake_new: