Skip to content

Instantly share code, notes, and snippets.

@maciekish
Last active January 10, 2023 08:47
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 maciekish/1f6d816a6dba7bdc39410df5402b80eb to your computer and use it in GitHub Desktop.
Save maciekish/1f6d816a6dba7bdc39410df5402b80eb to your computer and use it in GitHub Desktop.
Wifi Password Share for macOS
#!/bin/bash
ssid=$(/Sy*/L*/Priv*/Apple8*/V*/C*/R*/airport -I | awk -F' SSID: ' '/ SSID: / {print $2}')
password=$(security find-generic-password -wga "$ssid")
qrencode "WIFI:S:$ssid;T:WPA;P:$password;;" -t ansiutf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment