MacOS docker

https://github.com/sickcodes/Docker-OSX

Tools

Tools setup

MacOS

install Xcode via the AppStore
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.zshrc
xcode-select --install
brew install ideviceinstaller
sudo pip3 install objection
objection
brew install npm
npm install -g applesign
pip3 install frida
brew install ios-deploy
npm install iproxy
Install Cydia Impactor

Ubuntu

BurpSuite
sudo apt install git
sudo apt-get install openjdk-8-jdk
sudo apt install python3-dev python3-venv python3-pip build-essential libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev wkhtmltopdf
sudo git clone <https://github.com/MobSF/Mobile-Security-Framework-MobSF.git> /opt/MobSF
cd /opt/MobSF/
sudo ./setup.sh
pip3 install updog
git clone <https://github.com/AloneMonkey/frida-ios-dump.git>
cd frida-ios-dump/
sudo pip install -r requirements.txt --upgrade
sudo apt install libusbmuxd-tools
sudo apt install npm
sudo npm install -g passionfruit
sudo pip3 install objection
npm install -g applesign
sudo apt install libncurses5
wget <https://cydia.saurik.com/api/latest/5>
tar -zxvf Impactor64_*
npm install -g iproxy

# Install libimobiledevice
sudo apt install build-essential checkinstall git autoconf automake libtool-bin libssl-dev pkg-config cython libusb-1.0-0-dev
git clone <https://github.com/libimobiledevice/libplist>
git clone <https://github.com/libimobiledevice/libusbmuxd>
git clone <https://github.com/libimobiledevice/libimobiledevice>
git clone <https://github.com/libimobiledevice/usbmuxd>
cd libplist
./autogen.sh
make && sudo make install
sudo ldconfig
cd ..
cd libusbmuxd
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh
make && sudo make install
sudo ldconfig
cd ..
cd libimobiledevice
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --enable-debug
make && sudo make install
cd ..
cd usbmuxd
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --runstatedir=/run
make && sudo make install
sudo killall usbmuxd
cd ..
./autogen.sh
make
sudo make install
sudo ldconfig

On iPhone

From cydia:

Add the frida source repo: <https://build.frida.re/>
Useful tools repo: <https://repo.chariz.io> 

Install the following packages:
ipa installer, openssh, plutil, prefernce loader, NewTerm
SSLKillswitchv2, libertylite, adv-cmds, apt, bigboss recommended tools, class-dump
frida, 

if SSLKillSwitch is not on Cydia:
- ssh into the device
- apt install wget
- wget <https://github.com/nabla-c0d3/ssl-kill-switch2/releases/download/0.14/com.nablac0d3.sslki>
llswitch2_0.14.deb
- dpkg -i com.nablac0d3.sslkillswitch2_0.14.deb
- killall -HUP SpringBoard

Pentest tools

iProxy

Link: https://github.com/tcurdt/iProxy

Proxy USB connection over SSH (for better connectivity)

Usage example:

iron@VM:~$ sudo npm install -g iproxy
[sudo] password for iron: 
+ [email protected]
added 2 packages from 2 contributors in 2.192s

iron@VM:~$ iproxy 2222 22
waiting for connection

*New TAB*

iron@VM:~$ ssh root@localhost -p 2222
irons-iPhone:~ root# 

libimobiledevice

Link: https://github.com/libimobiledevice/libimobiledevice

Suits of tools to interact with iOS device