Jailbreaking
At the time of this writing, only up to version 12.1.2 of iOS can be jailbroken. While it is theoretically possible to downgrade the version, it is a giant hassle and I was not able to find a fully working solution over the span of several hours of research. Save yourself some time and just get a phone with an older version of iOS.
Jailbreak using Chimera
Following the instructions on here: https://cydia-app.com/chimera/
- Download http://www.cydiaimpactor.com/ onto your laptop
- Download the chimera IPA file from here: https://cydia-app.com/files/chimera_1.0.8.ipa or here: https://chimera.sh/downloads/ios/1.0.8.ipa. New links can most likely be found here: https://cydia-app.com/chimera/ or https://chimera.sh/
- Click Device on the top menu
- Click Install Package
- Select the chimera IPA file
- Click Open
- Once it’s finished installing, open Chimera and hit the Jailbreak button
- Once it reboots, open Chimera and hit the Jailbreak button again
- At this point, Sileo should be installed and the device should be jailbroken
To verify that the jailbreak is working as you expect it to, connect the phone to a trusted wifi network and connect to it. The credentials by default will be root/alpine.
I have noticed that the jailbreak undoes itself every so often. Simply follow steps 7-9 to redo it.
Setup Burp
- Open Burp on laptop -> Proxy -> Options
- Under Proxy Listeners, click Edit, change to All interfaces
- On phone go to Settings -> Wi-Fi -> click the i next to the current connected network (the laptop needs to be on this network as well)
- Tap Configure Proxy -> Manual
- Set the Server to your laptop and the port to burp suite’s port (8080 by default)
- Open safari on the phone and navigate to http://burpsuite
- Click CA Certificate
- Click Allow
- Click Install -> Install -> Install -> Done
On IOS 13
You will need to do the extra step of disabling TLS1.3 on the Proxy Listener in Burp.
- Click the Proxy tab
- Click Options
- Click the Listener and then click Edit
- Click TLS Protocols
- Uncheck the box next to TLSv1.3
- Click OK
Resource: https://forum.portswigger.net/thread/ios-13-burp-ssl-certs-not-able-to-be-fully-trusted-2b208cf6
Install an IPA
- Plug iPhone into your computer
- Open xcode
- Click on Window -> Devices and Simulators
- Drag the .ipa file into the Installed Apps area
If when you try to run the app you get a message titled “Untrusted Enterprise Developer”, do the following:
- Tap Settings > General > Profiles or Profiles & Device Management
- Locate the developer associated with the app, tap it
- Tap
Trust "Developer"
- Tap
Trust
Resources: https://docs.monaca.io/en/products_guide/monaca_ide/deploy/non_market_deploy/ https://support.apple.com/en-us/HT204460
Filesystem layout
/Application
- built-in apps/var/containers/Bundle/Application
- 3rd party apps/var/mobile/Containers/Data/Application
- 3rd party app data/private/var/mobile/Library/Voicemail
- voicemails/private/var/mobile/Library/SMS
- sms/private/var/mobile/Media/DCIM
- photos/private/var/mobile/Media/Videos
- videos/var/mobile/Library/AddressBook/AddressBook.sqlitedb
- address book
Useful Tools
Sqlite3
- Add this to sources: http://cydia.radare.org/
- Find sqlite and install it using Sileo