iOS command-line tool for WiFi-related operation.
- Search
wifiutil
in the Cydia on your jailbroken iOS device. - Install and access it using MobileTerminal or remote SSH.
- To enable wifi on iphone:
wifiutil enable-wifi
- To disable wifi on iphone:
wifiutil disable-wifi
- To scan available wifi hotspot:
wifiutil scan
- To associate with wifi hotspot named {ssid}:
wifiutil associate {ssid}
- To associate with wifi hotspot named {ssid} and with password {passwd}:
wifiutil associate {ssid} -p {passwd}
- To disassociate with current wifi network:
wifiutil disassociate
- To ping an ip address:
wifiutil ping {ip}
Licensed under:
实现Associate to wifi的,在iOS 版本10 之后,就比较困难,因为苹果将SBWiFiManager 的joinNetwork:password: 移除掉; 且在iOS10 中SBWiFiManager 的t_manager、t_device、t_currentNetwork 均采用 struct存储,提高了安全性。
因此要实现自动 Associate to wifi 的话,我从hopper 中看到sb 中使用WiFiManagerClientCreate() 实现连接Wi-Fi,因此就才想到使用MobileWiFi.framework 实现是最佳的捷径