【问题标题】:Get as much as possible from Application bundle (.app) [closed]尽可能多地从应用程序包(.app)[关闭]
【发布时间】:2012-10-10 23:49:24
【问题描述】:

我想尽可能多地了解有关给定应用程序包 .app 的技术信息,例如:

  • 使用的编译器
  • 使用的框架
  • 实现细节

显示有关 .app 的大量信息的 QuickLook 插件是理想的,但我不知道。

【问题讨论】:

    标签: ios macos reverse-engineering disassembly .app


    【解决方案1】:

    图形界面

    • MacDependency 显示 Mac OS X 上给定可执行文件、动态库或框架的所有依赖库和框架。它是 otool 命令的 GUI 替代品,并提供与 Windows 上的 Dependency Walker 几乎相同的功能。

    命令行

    • nm 显示参数列表中每个目标文件的名称列表(符号表)。
    • otool 显示目标文件或库的指定部分。
    • class-dump 检查存储在 Mach-O 文件中的 Objective-C 运行时信息。它为类、类别和协议生成声明。
    • class_dump_z

    列出所有链接的符号

    nm -u /Applications/.app/Contents/MacOS/executable | sort | less
    

    显示全局(外部)符号名称(无值或类型)。

    nm -g -j executable | sort | uniq | less
    

    列出该应用已链接到的所有库。

    otool -L executable
    

    显示Objective-C运行时系统使用的__OBJC段的内容。

    otool -ov executable | less
    

    反汇编

    otool -tvV executable | less
    

    显示实施地址

    class-dump -A executable | less
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-17
      • 2017-03-06
      • 2016-02-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多