Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1
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

authorized_keys will be generated under users home directory.


² Configure iOS


Execute the following commands in Terminal:


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
10 0% 408 0.4KB/s 00:00

ssh into iOS again to see if any passwords are required. Now, “make package install”


becomes “one time configuration, one click installation”, yay!


² Clean


Theos provides a convenient command “make clean” to clean our project. It indeed excutes


“rm -rf ./obj” and “rm -rf “/Users/snakeninny/Code/iosre/_”” in turn, thereby removes


folders generated by “make” and “make package”. Of course, you can further use “rm *.deb” to


remove all deb packages generated by “make package”.


3.2.4 An example tweak


The previous sections have introduced Theos almost thoroughly, although not all contents


are covered, it is way enough for beginners. I have already talked so much about Theos without


writing a single line of code, but we’re not done yet.


Now, I will take a simplest tweak to explain everything we’ve introduced. After installing


this tweak, a UIAlertView will popup after each respring.

Free download pdf