原命令非常方便,如:
1.列出所有附近的 Wi-Fi 网络及其相关信息
```bash
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s
```
2.监听路由器信道
```bash
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/ |
|