Idk if I'll feel comfortable jailbreaking a new 16, but yeah apple is fucking weird.
==== Apple engineers, I know you're here ====
What the fuck guys? I want to throw a match case into my ssh config based on the SSID of the network I'm on (I can't rely on IP being static). - Airport
Deprecated.
- networksetup
Not associated with AirPort network
- wdutil
Not only requires sudo, but you redact the SSID. To a root user‽‽‽
- ioreg -ln Airport driver | perl -lne 'print $1 if $_ =~ /IO80211SSID.*"(.*)"/;'
Redacted
- system_profiler SPAirPortDataType | awk '/Current Network/ {getline;$1=$1;print $0 | "tr -d ':'";exit}'
Takes 10 seconds to run but at least it fucking works and doesn't require sudo!
What
The
ᵃⁿᵈ ⁱ ᵈᵒⁿ'ᵗ ᵐᵉᵃⁿ ᵗʰⁱˢ ˡⁱᵍʰᵗˡʸ
FUCK
‽‽‽
Seriously! What is going on here? Why are you __hostile__ to shell users‽ I don't know how to tell you that knowing the SSID of a machine that you already have access to is not a security risk. Seriously, what is going on here? I have a dozen ways to do this on Linux and you redact it with a sudo command but not with a user level command? Come on..... Have some balls and stand up to your bosses