IOS scans WiFi hotspots

Source: Internet
Author: User

As for how IOS scans for WiFi hotspots, you may find it on the Internet. After reading it, it is estimated that you will crash. Because all the articles actually come from one place, there is no new idea in the transfer. In many cases, the problem cannot be solved.

Here we will talk about some of the problems I encountered during the scanning process. (For how to scan, Google yourself)

Source Code address: https://github.com/devinshively/wifiAssociate

Reference for scanning WiFi information: Wi-Fi/


Source code reference: http://easymorse-iphone.googlecode.com/svn/trunk/iphone.wifiii/


How to install SSH: http://osxdaily.com/2011/08/04/ssh-to-iphone/

Install SSH on iPad:

1. Search for cydia on the search page (IPAD)

2. Open cydia and you will see a "User Guide" group. Click the third "OpenSSH access how-",

3. A Help page is displayed, and then click "1. Install ...."

4. The package details page appears. Do you see the installation button in the upper right corner? install the package (and then restart automatically );

Connect to the iPad through SSH:

1. Open the command window (MAC)

2. Enter SSH root @ IP (such as the SSH root@192.168.1.148)

3. Enter the password (Alpine by default)

4. You can remotely operate the iPad for the rest.


I am using wifiassociate. In README, the author has already made it clear how to install and remove wificonnect43. Here I will just give a detailed introduction:

Program import:

1. First, compile the application: Go to product> build for> archiving,

2. Open the program folder (right click Products> wificonnect43.app and click "show in Finder" right click Products> wificonnect43.app and click "show in Finder "),

Here, according to build for> archiving, your product name is still red, that is, the program does not exist. At this time, you only need to select the IOS mode and build a debug version, then show in finder and switch to the release-iphoneos folder (do not use the debug-iphoneos folder );

3. Move wificonnect43.app to the desktop

4. Find the IP address of your device (in setting)

5. Execute SCP-RP ~ in your Mac command window ~ /Desktop/wificonnect43.app root @ {deviceip}:/applications/(for example, SCP-RP ~ /Desktop/wificonnect43.app root@192.168.1.148:/applications /)

6. Enter the password (Alpine by default)

7. After restarting the device, you will see your program.

Update programs:

1. Connect to the iPad through SSH (for details, connect to the iPad through SSH)

2. Run "RM-fr/applications/wificonnect43.app"

3. Execute reboot

4. reinstall the agent. For more information, see import the agent program :)

Supplement:

You may encounter some problems:

1. cgbitmapcontextcreateimage: Invalid context 0x0

For example, a similar problem is caused by a jailbreak problem in your iOS system. (For this program, if it involves plotting or something, it should be another question .)


2. A program crashes upon startup (dlopen)

There are two open paths

Libhandle = dlopen ("/system/library/systemconfiguration/wifimanager. Bundle/wifimanager", rtld_lazy); // IOS

Before IOS 4.3.3

Libhandle = dlopen ("/system/library/systemconfiguration/ipconfiguration. Bundle/ipconfiguration", rtld_lazy); // use it after iOS 5 (I still don't know about ios6, I haven't seen it yet)

Select different paths based on your system version.

3.

Apple80211scan (airporthandle, & scan_networks, parameters); failed, scan_networks is always empty

This is because you have installed the program in the user application folder.

Because the API for hotspot scanning is a private API, you can obtain the super permission and Hotspot information only when you move to a program (system. therefore, you cannot directly use xcode to import programs to devices.

Program (User); Use SSH to import it honestly


4. After the program is installed, the running will crash.

Are you using a third-party Program (itools) to drag the program directly to "Program (system)" (You can't drag it directly, why, I don't know), of course, there are other installation methods, such as setting a deb report or modifying the installation path, but I have not understood it yet. You can refer:

Http://www.lt163.com/sj/znpc/iPhone/200905/6032.html

Http://blog.csdn.net/linqir/article/details/8812889

Http://blog.csdn.net/zkdemon/article/details/8003734

Http://blog.csdn.net/leonpengweicn/article/details/8585814

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.