Skip to content

Instantly share code, notes, and snippets.

@hexvalid
Created October 3, 2015 11:24
Show Gist options
  • Save hexvalid/10de5fd3a21b5633622f to your computer and use it in GitHub Desktop.
Save hexvalid/10de5fd3a21b5633622f to your computer and use it in GitHub Desktop.
Scan ALL WIFI
sudo iwlist wlp3s0 scan | awk 'BEGIN{FS="\n";RS="Address:"}
/key:off/{off++}
/key:on/{on++}
/WPA/{wpa++}
END{ print "Available Networks:"
print "Open: "off" WEP: "wpa - on" WPA: "wpa""
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment