同理也是,Theos 的安裝教程與原來的 《iOS 逆向工程》書上的方法有一點(diǎn)點(diǎn)出入。所以記錄一下我的安裝過程。
WiKi
** Theos **最初由DHowett進(jìn)行開發(fā),但由于DHwoett去了微軟,沒有時(shí)間維護(hù),所以之后由Adam Demasi(kirb)接手了他的工作,并且添加了很多全新的功能。
Dpkg是Debian的軟件包。
Ldid是越獄祖師爺Saurik開發(fā)的一款二進(jìn)制授權(quán)管理軟件,可以對(duì)越獄應(yīng)用進(jìn)行SHA1運(yùn)算生成授權(quán),讓軟件包可以在iPhone上執(zhí)行。
Homebrew是一款Mac上的基于Ruby的包管理器,可以理解為與Yum、Apt、Pecman類似即可。
安裝方法
- ldid、Dpkg安裝: (使用Homebrew進(jìn)行安裝)
brew install dpkg ldid
如果沒有安裝Homebrew,使用ruby也是很簡(jiǎn)單的一件事情。(安裝Homebrew可能需要翻墻,網(wǎng)速會(huì)很慢的0 0)
安裝Homebrew代碼為:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Theos安裝
把Theos安裝在/opt/theos 目錄下
sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
然后把/opt/theos的權(quán)限改為自己所擁有
sudo chown $(id -u):$(id -g) /opt/theos
**最后把theos的執(zhí)行路徑加入到環(huán)境變量中,在~/.bash_profile中加入兩行代碼 **vim ~/.bash_profile
export THEOS=/opt/theos
export PATH=/opt/theos/bin/:$PATH
更新bash_profile
source ~/.bash_profile
安裝完成!~~
- 測(cè)試安裝是否成功
在任意可執(zhí)行目錄下,在終端中輸入nic.pl
,New Instance Creator開始執(zhí)行則已經(jīng)安裝成功。
安裝成功顯示.png
安裝成功顯示.png
PS:從舊Theos更新到最新
直接使用 git submodule update –recursive
就可以完成了。
參考鏈接:
http://www.iosre.com/t/theos/4928
https://github.com/theos/theos/wiki/Installation