frida / frida-python

Frida Python bindings
Other
787 stars 148 forks source link

Support for tracing high-level methods of Java Classes via patterns #70

Open dpnishant opened 8 years ago

dpnishant commented 8 years ago

We need to add support for tracing high-level methods of Java Classes via patterns i.e. the Android/Java equivalent of the existing switch, below:

frida-trace -U someApp -m "*[NSFile* write*:*]"

dpnishant commented 8 years ago

may be we should also rename -m to -ObjC so that when we have the Java support, a switch like -Java would be consistent and self-explanatory. Just my 2 cents.

Piasy commented 7 years ago

Any update on this issue?

oleavr commented 7 years ago

@Piasy Nobody is working on this as far as I can know. Are you volunteering? ;)

dpnishant commented 7 years ago

@Piasy In the meantime, why don't you give https://github.com/dpnishant/appmon a try? :)

Piasy commented 7 years ago

@dpnishant Great work! But why not support wildcard in method name of Android Tracer? btw, I've write a tiny Java program to generate js code to hook all methods in provided classes, I'll release it later :)

oleavr commented 7 years ago

@Piasy Would be awesome if you could implement that in frida-trace 😊 It's still a pretty simple program, less than 900 LOC, so shouldn't take long to understand it and be able to add this new feature to it.

Piasy commented 7 years ago

Sure, I'll try it.

Piasy commented 7 years ago

@oleavr Sorry sir, I'm not very familiar with python, so I can't finish this job in a short time, and I don't have enough time to dive into this job. But I've released the Java program I wrote to generate hook script, hope it could help others, https://github.com/Piasy/FridaAndroidTracer.

dpnishant commented 7 years ago

@Piasy Check out this update https://github.com/dpnishant/appmon/commit/bf3cee9e3676ecb1f446c25aa7f6573a85794ace 😊

Piasy commented 7 years ago

@dpnishant Awesome!

XhstormR commented 5 years ago

Yes, it would be great if frida-trace could track the java method directly.

bitterbit commented 4 years ago

As of version 12.10 and frida-tools 8.0 frida-trace supports Android 🎉 https://frida.re/news/2020/06/29/frida-12-10-released/

Cyph3rex commented 2 years ago

wow , this thread has been here for almost 6 years , and I'm looking for the same thing , a way to trace methods

XhstormR commented 2 years ago

Does frida currently support tracking methods on the JVM?