Git Product home page Git Product logo

cydiahookdvm's Introduction

Cydia Hook使用

  1. Root手机安装基础框架应用
  2. 下载Cydia SDK并集成到工程中
  3. 编写hook代码,ndk部分需要单独编译,将生成的so文件打包并安装
  4. 安装时Cydia插件提示软重启,重启后可以查看log信息

编译命令:

ndk-build  APP_ABI="armeabi"

ndk-build  APP_ABI=“x86”

在使用Cydia Hook时需要知道so中不同平台中对应的函数名称,可以通过如下nm命令获取:

nm命令位置:/usr/local/Cellar/android-ndk/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/arm-linux-androideabi/bin

nm命令使用:

NetEasedeiMac-9:bin netease$ ./nm -a ~/Desktop/libdvm.so | grep dvmUseJNIBridge
0005bd30 T _Z15dvmUseJNIBridgeP6MethodPv

可以使用objdump查找so中方法:

NetEasedeiMac-9:bin netease$ ./objdump -TC ~/Desktop/libdvm.so |grep dvmUseJNIBridge
0005bd30 g    DF .text	000000d7 dvmUseJNIBridge(Method*, void*)

对应的nm方法:

NetEasedeiMac-9:bin netease$ ./nm -gC ~/Desktop/libdvm.so | grep dvmUseJNIBridge
0005bd30 T dvmUseJNIBridge(Method*, void*)

添加hook函数参考 参考1 参考2 参考3

cydiahookdvm's People

Contributors

xiaol76 avatar

Watchers

 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.