Created
April 1, 2020 17:23
-
-
Save s0lst1c3/5521c273606993e05c3082fa99aafcc2 to your computer and use it in GitHub Desktop.
Quick hacky script for extracting SSIDs from a set of airodump-ng CSV files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
all_ssids = set([]) | |
for input_file in glob.glob('*.csv'): | |
with open(input_file) as fd: | |
for line in fd: | |
if line.split(',')[0] == 'BSSID': | |
continue | |
if line.split(',')[0] == 'Station MAC': | |
break | |
line_len = len(line.split(',')) | |
if line_len == 1: | |
continue | |
all_ssids.add(line.split(',')[13]) | |
for ssid in all_ssids: | |
if ssid.strip() != '': | |
print(ssid.strip()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment