Skip to content

Instantly share code, notes, and snippets.

@s0lst1c3
Created April 1, 2020 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s0lst1c3/5521c273606993e05c3082fa99aafcc2 to your computer and use it in GitHub Desktop.
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
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