munkireport / wifi

0 stars 3 forks source link

PrivateMACAddressModeUserSetting #11

Open sphen13 opened 6 days ago

sphen13 commented 6 days ago

curious if you had any thoughts on pulling the current value of PrivateMACAddressModeUserSetting for the current SSID from /Library/Preferences/com.apple.wifi.known-networks.plist?

ie. /usr/libexec/PlistBuddy -c "print :wifi.network.ssid.'${SSID}':PrivateMACAddressModeUserSetting" /Library/Preferences/com.apple.wifi.known-networks.plist

i see currently we are just using system_profiler. It seems apple does not provide this info in there - so that would limit us to a bit of guessing as to what the actual setting is and just check to see if the current WiFi MAC matches our actual MAC.

tuxudo commented 6 days ago

It's on my list of things to look into adding :D