原命令非常方便,如:
1.列出所有附近的 Wi-Fi 网络及其相关信息
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s
2.监听路由器信道
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport en0 sniff 8
该命令行工具在 MacOS14.4 版本被移除, Reddit 的讨论:
With the macOS 14.4 update, Apple has disabled the command line tool – presumably to prevent apps from using abusing it to snoop on your location. Binary comparisons between macOS 14.3 and macOS 14.4 confirm that the CLI code has been removed.
https://www.reddit.com/r/MacOS/comments/1bjjchk/rip_airport_cli_macos_sonoma_144_removes_the/
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.