Git Product home page Git Product logo

Comments (5)

chame1eon avatar chame1eon commented on July 18, 2024 1

Hi,

Thanks for your message. Yes I do want to do something like that, I have been thinking about the best way to expose it as an API. Any thoughts on how you would want to use it as an NPM package would be appreciated :).

Thanks

from jnitrace.

Ayrx avatar Ayrx commented on July 18, 2024

My (current) use case is pretty simple. I want to log calls to specific JNI methods in a format that other scripts can consume.

I think the ability to write a NativeCallback and tell your library to attach it to a specific JNI method on a specific library would be a good start and provides the most flexibility.

You probably would not need expose the logic where you look up method identifiers at runtime as I can statically provide the method signature of the callback.

from jnitrace.

chame1eon avatar chame1eon commented on July 18, 2024

Thanks. I'll take a look this week and put a prototype together. I'll message you back when I've done that to see what you think of it.

from jnitrace.

chame1eon avatar chame1eon commented on July 18, 2024

Hi,

I have put together an initial prototype. I decided that it would be better to split the project up and have created a jnitrace-engine which exposes the hooking logic: https://github.com/chame1eon/jnitrace-engine

I am going to modify this project to use that library when I get the chance but for right now it still have the hooking logic hard coded.

I still need to add some more documentation and clean up the jnitrace-engine library but it should work fine. Let me know if you have any thoughts/feedback. I went with the approach of trying to make it as "Frida" like as possible, so it should seem familiar to writing a Frida intercept.

Thanks.

from jnitrace.

chame1eon avatar chame1eon commented on July 18, 2024

Closed this now.

from jnitrace.

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.