0% found this document useful (0 votes)
106 views

Ai

This document contains a Bash script that installs several dependencies and libraries needed for iOS device communication, including libimobiledevice, libplist, libusbmuxd, libxml2, openssl, and others. It clones the necessary repositories from GitHub, runs autogen.sh, make, and make install to build and install each library. Finally it configures the environment paths.

Uploaded by

Ange Bredou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views

Ai

This document contains a Bash script that installs several dependencies and libraries needed for iOS device communication, including libimobiledevice, libplist, libusbmuxd, libxml2, openssl, and others. It clones the necessary repositories from GitHub, runs autogen.sh, make, and make install to build and install each library. Finally it configures the environment paths.

Uploaded by

Ange Bredou
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

#!

/usr/bin/env bash
clear
rm -rf dependencies
mkdir dependencies
cd dependencies
/bin/bash -crm -rf libimobiledevice
mkdir libimobiledevice
cd libimobiledevice

export PATH=/usr/local/bin:$PATH
which brew > /dev/null
if [ $? -ne 0 ]; then
echo "NO HOMEBREW. Install it from brew.sh"
exit
return
fi

xcode-select --install

echo " "


echo IMPORTANT: WAIT FOR COMMAND TOOLS TO INSTALL!
echo If you do not get a popup, they are already installed
read -p "Press Enter when software is installed..."

brew install libusb


brew install libtool
brew install automake
brew install curl
brew reinstall libxml2
echo 'export PATH="/usr/local/opt/libxml2/bin:$PATH"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/libxml2/lib"
export CPPFLAGS="-I/usr/local/opt/libxml2/include"
export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"
brew install gnutls
brew install libgcrypt
brew reinstall openssl
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"
brew install pkg-config
brew link pkg-config
echo "Installing sshpass"
brew tap esolitos/ipa
brew install sshpass

echo "[*]Installing libplist ..."


git clone https://github.com/libimobiledevice/libplist.git
cd libplist
./autogen.sh --without-cython
make
make install
cd ..

echo "[*]Installing libusbmuxd ..."


git clone https://github.com/libimobiledevice/libusbmuxd.git
cd libusbmuxd
./autogen.sh
make
make install
cd ..

echo "[*]Installing libimobiledevice ..."


git clone https://github.com/libimobiledevice/libimobiledevice.git
cd libimobiledevice
./autogen.sh --without-cython --disable-openssl
make
make install
cd ..

echo 'export PATH="/usr/local/opt/libimobiledevice/bin:/usr/local/opt/libxml2/bin:


$PATH"' >> ~/.zshrc
export LDFLAGS="-L/usr/local/opt/libimobiledevice/lib -L/usr/local/lib"
export CPPFLAGS="-I/usr/local/opt/libimobiledevice/include -I/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig"

echo "[*]Installing libideviceactivation ... "


git clone https://github.com/libimobiledevice/libideviceactivation.git
cd libideviceactivation
./autogen.sh
make
make install
cd ..

echo "[*]Installing libirecovery ... "


rm -r -f libirecovery
git clone https://github.com/libimobiledevice/libirecovery.git
cd libirecovery
./autogen.sh
make
make install
cd ..

echo "ALL DONE"


echo " "
echo "Quit Terminal to Stop Here"
read -p "Or Press Enter to fix SEND/RETRIEVE RESPONSE..."

echo "[*]Installing patched libideviceactivation by OliTheRepairDude ... "


rm -r -f libideviceactivation
git clone https://github.com/OliTheRepairDude/libideviceactivation.git
cd libideviceactivation
./autogen.sh
make
make clean
make install
cd ..

echo " "


echo "Done! Sliver is ready to use!"
exit
return

You might also like