Coder Social home page Coder Social logo

[Help] cannot hook stat about andhook HOT 8 CLOSED

aslody avatar aslody commented on August 15, 2024
[Help] cannot hook stat

from andhook.

Comments (8)

Rprop avatar Rprop commented on August 15, 2024 2

Please attach the CMake error message.

from andhook.

Rprop avatar Rprop commented on August 15, 2024 1

Since stat is a kind of ambiguous symbol, you probably have to make it clear (e.g. get its function pointer first and then use AKHookFunction directly).

from andhook.

nakcont avatar nakcont commented on August 15, 2024

Can you give me the example above ? i do not know where 'function pointer first' is. pls help me.

from andhook.

nakcont avatar nakcont commented on August 15, 2024

Sorry, my Cmake not error message, I want to ask you how hook function stat :(
i cannot hook it with AKHook(stat), please give me the any examples. thanks you

struct stat buf; char *res="/system/xbin/su"; int resultNow = stat(res, &buf) == 0 ? 1 : 0; if (resultNow == 1) { AKLog("IS ROOTED"); } else { AKLog("NOT ROTED"); }

from andhook.

Rprop avatar Rprop commented on August 15, 2024

Are you sure AKHook(stat) is called properly before stat?

from andhook.

nakcont avatar nakcont commented on August 15, 2024

Yes, i sure AKHook(stat) call before run stat;

from andhook.

Rprop avatar Rprop commented on August 15, 2024

That's impossible, inline hook should never fail without crashing the application.

from andhook.

nakcont avatar nakcont commented on August 15, 2024

OK, thanks you, i think my mistake. i will build again .

from andhook.

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.