Coder Social home page Coder Social logo

jdbbjd / hookzz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmpews/dobby

5.0 1.0 1.0 1.75 MB

a hook framework for arm/arm64/ios/android, and [dev] branch is being refactored.

Home Page: http://hookzz.libkernel.com

License: Apache License 2.0

C 8.52% Objective-C 0.40% C++ 85.48% Assembly 0.34% CMake 5.08% Shell 0.19%

hookzz's Introduction

HookZz

if you have any question go to Discord or full documentation here

HookZz still in beta

Installation

build for host machine

git clone --branch dev --depth 1 https://github.com/jmpews/HookZz.git

cd HookZz && mkdir build && cd build && cmake .. && make

build for others (iOS / Android / ARM / ARM64)

-> full Installation documents or full Installation document site

Usage and Example

simple replace hook function

extern "C" {
  extern int ZzReplace(void *function_address, void *replace_call, void **origin_call);
}

size_t (*origin_fread)(void * ptr, size_t size, size_t nitems, FILE * stream);

size_t (fake_fread)(void * ptr, size_t size, size_t nitems, FILE * stream) {
    // Do What you Want.
    return origin_fread(ptr, size, nitems, stream);
}

void hook_fread() {
    ZzReplace((void *)fread, (void *)fake_fread, (void **)&origin_fread);
}

multi-platform example

Known Issues

Android / ARM

4.1.1. not fixed pld

x86

x86_64 tested, but not x86.

Refer

  1. frida-gum
  2. minhook
  3. substrate.
  4. v8
  5. dart
  6. vixl

hookzz's People

Contributors

jmpews avatar bokic avatar

Stargazers

Oops avatar  avatar  avatar acceler avatar zdcode avatar

Watchers

James Cloos avatar

Forkers

cannylin

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.