Theos NIC templates内置了5种Theos工程类型的模板,方便创建多样的Theos工程。除此以外,还可以从https://github.com/DHowett/theos-nic-templates/archive/master.zip获取额外的5种模板,下载后将解压得到的5个.tar文件复制到“/opt/theos/templates/iphone/”下即可。
> include $(THEOS_MAKE_PATH)/teak.mk 根据不同的Theos工程类型,通过include命令指定不同的.mk文件;在逆向工程初级阶段,我们开发的一般是Application、Tweak和Tool三种类型的程序,它们对应的.mk文件分别是application.mk、tweak.mk和tool.mk,【可以按需更改】。
snakeninnysiMac:~ snakeninny$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/Users/snakeninny/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/snakeninny/.ssh/id_rsa. Your public key has been saved in /Users/snakeninny/.ssh/id_rsa.pub. …… snakeninnysiMac:~ snakeninny$ cp /Users/snakeninny/.ssh/id_rsa.pub ~/authorized_keys
3、配置iOS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
FunMaker-5:~ root# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/var/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /var/root/.ssh/id_rsa. Your public key has been saved in /var/root/.ssh/id_rsa.pub. …… FunMaker-5:~ root# logout Connection to iOSIP closed. snakeninnysiMac:iosreproject snakeninny$ scp ~/authorized_keys root@iOSIP:/var/root/.ssh The authenticity of host 'iOSIP (iOSIP)' can't be established. RSA key fingerprint is 75:98:9a:05:a3:27:2d:23:08:d3:ee:f4:d1:28:ba:1a. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'iOSIP' (RSA) to the list of known hosts. root@iOSIP's password: authorized_keys 100% 408 0.4KB/s 00:00