Re:Ask HN: How Do You Maintain Security When Working Remotely?
by blumentopf on Sunday March 15, 2015 @10:27AM
(#9206601)
Retrieving wifi passwords from NVRAM:
/usr/libexec/airportd readNVRAM
Alternatively: nvram 36C28AB5-6566-4C50-9EBD-CBB920F83843:current-network
nvram 36C28AB5-6566-4C50-9EBD-CBB920F83843:preferred-networks
nvram 36C28AB5-6566-4C50-9EBD-CBB920F83843:preferred-count
I can't speak for if this is true or not, but I literally yesterday ran Internet Recovery and it didn't remember my wifi password. I had to re-enter it myself.
Little Snitch is a good reverse-firewall which might be preferable to messing around with /etc/hosts for many, especially since it offers active protection.