Skip to content

Instantly share code, notes, and snippets.

@s0lst1c3
Created April 1, 2020 17:23
Show Gist options
  • Select an option

  • Save s0lst1c3/5521c273606993e05c3082fa99aafcc2 to your computer and use it in GitHub Desktop.

Select an option

Save s0lst1c3/5521c273606993e05c3082fa99aafcc2 to your computer and use it in GitHub Desktop.

Revisions

  1. s0lst1c3 created this gist Apr 1, 2020.
    16 changes: 16 additions & 0 deletions extract_ssids.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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())