Created
April 1, 2020 17:23
-
-
Save s0lst1c3/5521c273606993e05c3082fa99aafcc2 to your computer and use it in GitHub Desktop.
Revisions
-
s0lst1c3 created this gist
Apr 1, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal 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())