GithubHelp home page GithubHelp logo

Comments (4)

steven-michaud avatar steven-michaud commented on May 19, 2024

There's an example in my hook library template. Please read it and let me know if you have any further questions.

from hookcase.

codingsf avatar codingsf commented on May 19, 2024

I still don't known how i can hook a sub function. in Hooked_sub_123abc, there are two question.

  1. is 123abc a relative address in the main module,so i should minus the module base address?
  2. if i want to hook a number-address function in none main module, how can i appoint the module name?

tks, your hookcase is a usefull project. I read your cases many times,still confused.


after tries of many times, i've got what i want. thanks again!

  1. yes
  2. patch_function can help specify the module name!

from hookcase.

steven-michaud avatar steven-michaud commented on May 19, 2024

I don't think there's anything I can say here that will make things clearer than than what I've already said in my documentation.

To use HookCase, you need to be familiar with disassemblers and assembly code. In my favorite disassembler, Hopper Disassembler, internal functions that aren't in a module's symbol table are given names composed of the prefix "sub_" and the function's address (in hexadecimal format) in the module's file on disk -- for example sub_123abc(). As the example shows, you can use this "name" to hook the function by its address. HookCase figures out where the function is in actual random access memory, into which the module has been loaded.

from hookcase.

steven-michaud avatar steven-michaud commented on May 19, 2024

Oops, I see that you've already figured things out. I'll close this bug.

from hookcase.

Related Issues (20)

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.