Hacking and Securing iOS Applications Note

来源:互联网 发布:贵金属数据下载 编辑:程序博客网 时间:2024/05/21 09:22

寻找compiler

xcrun -find -sdk iphoneos clang

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang

xcrun -find -sdk iphoneos clang++

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++




sdk位置

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/




编译命令,相交多了一个-arch armv7

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o hello hello.c -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/ -arch armv7




entire ARM architecture reference 

/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/DTISAReferenceGuide.framework/Versions/A/Resources/ARMISA.pdf




拷贝到真机上

eichao-company-iMac:ch02 zhaolintao$ scp hello root@10.209.96.157:hello
The authenticity of host '10.209.96.157 (10.209.96.157)' can't be established.
RSA key fingerprint is a8:c5:e5:bc:38:a1:ec:e1:83:ed:bb:bc:ed:dc:f8:26.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.209.96.157' (RSA) to the list of known hosts.
root@10.209.96.157's password: 
alpine 

hello                                                                        100%   48KB  48.3KB/s   00:00    


看到

Deploying Malicious Code with a Tar Archive 

2014.1.24 10.05

0 0
原创粉丝点击