美文网首页
Hit a shell

Hit a shell

作者: lifeLL | 来源:发表于2017-09-12 17:20 被阅读0次
//1.      ssh进入手机  ssh root@iphone id

//2.      找到目标app路径
Yuanlingde-iPhone:~ root# ps -e|grep Containers
  977 ??         0:33.20 /var/mobile/Containers/Bundle/Application/2BCF44DF-4B58-4074-85B4-1A6E75E5F4DA/WeChat.app/WeChat

//3.      用Cycript找出TargetApp的Documents目录路径
way1 :
Yuanlingde-iPhone:~ root# cycript -p 1050
cy#
cy#
cy# NSHomeDirectory()
@"/var/mobile/Containers/Data/Application/311A8B61-191B-4468-9DDE-CFA00AAB2574”
然后自己拼接上 “/Documents/”
way 2 :
cy# [[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDominMask][0]
#"file:///var/mobile/Containers/Data/Application/311A8B61-191B-4468-9DDE-CFA00AAB2574/Documents/"

//4.     将dumpdecrypted.dylib拷贝到目标app路径的Documents目录下
lifedeMBP:~ life$ scp /Users/life/iOS/reverse/dumpdecrypted-master/dumpdecrypted.dylib root@192.168.2.204:/var/mobile/Containers/Data/Application/311A8B61-191B-4468-9DDE-CFA00AAB2574/Documents/
root@192.168.2.204's password:
dumpdecrypted.dylib                                        100%  193KB 192.9KB/s   00:00
lifedeMBP:~ life$

//5.     砸 cd进入docment目录
FunMaker-5:~ root# cd /var/mobile/Containers/Data/Application/D41C4343-63AA-4BFF-904B-2146128611EE/Documents/
DYLD_INSERT_LIBRARIES=dumpdecrypted.dylib /var/mobile/Containers/Bundle/Application/2BCF44DF-4B58-4074-85B4-1A6E75E5F4DA/WeChat.app/WeChat

//6.     拷回MAC
lifedeMBP:~ life$ scp root@192.168.2.204:/var/mobile/Containers/Data/Application/311A8B61-191B-4468-9DDE-CFA00AAB2574/Documents/WeChat.decrypted /Users/life/iOS/reverse/wechat
root@192.168.2.204's password:
WeChat.decrypted                                           100%  116MB 506.2KB/s   03:55

//7.     class dump
lifedeMBP:~ life$ class-dump --arch armv7 -H /Users/life/iOS/reverse/dumpdecrypted-master/WeChat.decrypted -o /Users/life/iOS/reverse/heads.h
(不加-H选项就会打印在终端上)

相关文章

  • Hit a shell

  • SO FAR AWAY FROM GO

    big day. hit the sack. hit the roads. hit on the girl. ...

  • hit

    后来的我们,在茫茫人海中渐行渐远。远到好像听不见,也看不清对方说什么,想着什么。 然后,彼此在好像相互眷恋的微妙感...

  • HIT

    1、自我介绍(看情况,这不是必须的,大部分没有自我介绍,少部分有) Good afternoon, my teac...

  • 尚好的世间,尚好的我们

    Get ready for the storm to hit – because hit it will. 世事无...

  • 《你的名字》

    Japan’s smash hit “your name” hit Chinese theaters on Fri...

  • e-pcr的使用

    +|- -- strand of hit (order of primers in hit) ,显示+-号不知道啥...

  • 美剧记单词 0426 绝望的主妇 s07 e21

    hit and run说orsen hit and run了。principal 和principle oliv...

  • hit refresh

    看完了这本书。从某种意义上来说,我觉得这本书更像一本微软的软广告。但不管怎么说,还是有几个点可以记录一下 1.关于...

  • Knife Hit

    In the game, we need to insert the knife into the space o...

网友评论

      本文标题:Hit a shell

      本文链接:https://www.haomeiwen.com/subject/fgacsxtx.html