Connecting with iDevice
In Chapter 1, Introducing iOS Application Security, we had studied that iOS is very similar to a Unix-based system. So, let's log in to the device and check it.
To log in to iDevice, you should have SSH running on iDevice so that you can connect to it using the SSH client. In Cydia, search for OpenSSH
and install it, as shown in the following screenshot:
Then, connect your iDevice to Wi-Fi and check the IP address of your device, as follows:
Now, from your PC/Mac system, connect to this IP address over SSH using any SSH client. It will prompt you for a username and password. The default credentials for SSH connection with any iDevice are username as root
and password being alpine
.
Once you logged in, you will notice a similar filesystem as Unix under the root
directory, as shown in the following screenshot:
The most important thing is to change your default password otherwise, anyone over Wi-Fi could connect to your device using the default credentials. Therefore...