Hacking and Securing iOS Applications Note

寻找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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值