Code Monkey home page Code Monkey logo

iosjailbreaktools's Introduction

iOSJailbreakTools

何为 iOSJailbreakTools

iOS逆向分析时,常常需要一台越狱设备,同时安装 RevealLoader、OpenSSH、Cycript 等逆向分析工具。如果你没有一台拥有 root 权限的 iOS 设备,你就无法使用这些工具来逆向分析 App。

iOSJailbreakTools 是一个越狱平台上的工具集合,将 RevealLoader、Cycript 整合成一个独立的 dylib。你只需要将该 dylib 注入到要分析的 App 中,然后签名,安装到 iOS 设备上,即可在非越狱的设备上使用 Reveal 和 Cycript 分析工具。

安装 Mac 端

Installation 目录中的文件,按照目录结构拷贝至 Mac 上

安装 iOS 端

拷贝 libDebugger.dylib 至 XXX.app 目录中

注入 libDebugger.dylib

$ optool install -p @executable_path/libDebugger.dylib -t /path/to/binary

使用 Reveal

iOS: libReveal.dylib 1.6.3

Mac: Reveal for macOS 1.6.3 Download

使用同一个局域网,运行 App 即可使用 Reveal。

使用 Cycript

iOS: libCycript.dylib

Mac: Terminal]

安装 Cycript for Mac 到 macOS

进入 Cycript-macOS 目录,按照 README.md 说明将 Cycript 命令行安装到 Mac 上

链接到 iOS

在同一个局域网下,使用 TCP 链接到设备中:

cycript -r 192.168.xxx.xxx:8888

192.168.xxx.xxx 是设备内网 IP,8888 是默认端口号。

如果出现以下情况:

*** _syscall(connect(socket_, info->ai_addr, info->ai_addrlen)):../Console.cpp(306):CYSocketRemote [errno=61]

说明 8888 端口无法正常使用,可以通过 cycript.port 文件修改端口:

工具会自动识别 Documents、mainBundle 下的 cycript.port 文件,你只需要将新的端口号写入 cycript.port 文件中,然后重启 App 即可。

如果 Documents 和 XXX.app 目录中都有 cycript.port 端口号文件,则优先级如下:

Documents/cycript.port > XXX.app/cycript.port > 8888

使用内置 API

工具提供内置 API 用于分析:

UIControl+DebugLib

@interface UIControl (DebugLib)

/**
 *	输出所有 Target-Action 映射表
 */
- (NSDictionary *)dlib_eventActions;

@end

对于某个 button,想知道单击之后触发的 target-action,即可在 cycript 中如下调用:

cy> var btn = #fffffff
cy> [btn dlib_eventActions]

致谢

Urinx/iOSAppHook

iosjailbreaktools's People

Contributors

magic-unique avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.