设为首页 加入收藏

TOP

class-dump 使用
2015-07-20 17:41:43 来源: 作者: 【 】 浏览:2
Tags:class-dump 使用

class-dump 官网地址:这里

我这里下载的是 class-dump-3.5.dmg 版本的。双击.dmg 文件,将 \ 拉倒 /usr / local / bin 目录下,这样就可以在终端使用 class-dump 命令了。

这里我演示dump系统自带的计算器,导出它的头文件。

命令如下:

class-dump -H /Applications/Calculator.app -o /Users/Rio/Desktop/calculate\ heads

解释:

/Applications/Calculator.app 是计算器app的路径

/Users/Rio/Desktop/calculate\ heads 是存放dump出来头文件的文件夹路径

class-dump 3.5 (64 bit)
Usage: class-dump [options] 
  
   

  where options are:
        -a             show instance variable offsets
        -A             show implementation addresses
        --arch 
   
     choose a specific architecture from a universal binary (ppc, ppc64, i386, x86_64) -C 
    
      only display classes matching regular expression -f 
     
       find string in method name -H generate header files in current directory, or directory specified with -o -I sort classes, categories, and protocols by inheritance (overrides -s) -o 
      
        output directory used for -H -r recursively expand frameworks and fixed VM shared libraries -s sort classes and categories by name -S sort methods by name -t suppress header in output, for testing --list-arches list the arches in the file, then exit --sdk-ios specify iOS SDK version (will look in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS
       
        .sdk --sdk-mac specify Mac OS X version (will look in /Developer/SDKs/MacOSX
        
         .sdk --sdk-root specify the full SDK root path (or use --sdk-ios/--sdk-mac for a shortcut)
        
       
      
     
    
   
  

运行命令,可以看到已经dump出头文件了,如下所示:

n块ドZ睬n?%j??a?ky加密的密文。出现这种现象的原因是:class-dump 额作用对象必须是未经加密的可执行文件,而从 App Store 下载的 App 都是经过签名加密的,可执行文件被加上了一层“壳”。可以使用 AppCrackr 来自动砸壳。


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇HDU 5003 Osu!(鞍山网络赛G题) 下一篇HDU5011-Game(博弈)

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·MySQL 安装及连接-腾 (2025-12-25 06:20:28)
·MySQL的下载、安装、 (2025-12-25 06:20:26)
·MySQL 中文网:探索 (2025-12-25 06:20:23)
·Shell脚本:Linux Sh (2025-12-25 05:50:11)
·VMware虚拟机安装Lin (2025-12-25 05:50:08)