house icon indicating copy to clipboard operation
house copied to clipboard

Hook all methods with the given class.

Open theblackturtle opened this issue 5 years ago • 6 comments

Hi, how I can hook all methods with the given class. And how I can enum if a class have multiple methods with same name but different type a() ; a(android.content.Context); a(java.lang.String,boolean) Thanks.

theblackturtle avatar Jul 26 '18 04:07 theblackturtle

Hey unfortunately House does not support hook all methods with given class for now; but this would def be a cool feature;

For your second question; House enum and hook func will return all overloaded function under a class, I am not sure what are you trying to achieve; if you want to intercept a specific one, you can try inspect under intercept tab, and type the classname & method name, house will return a dropdown list of all overloaded ones and you can pick the target one.

Hope that answers your question.

H4oK3 avatar Jul 26 '18 14:07 H4oK3

I want to hook some variables in the class. Is it possible?

theblackturtle avatar Jul 26 '18 16:07 theblackturtle

I don't know honestly, but Frida repo or IRC might be a good place to ask.

H4oK3 avatar Jul 26 '18 23:07 H4oK3

And can you add function can re-execute a class or method with n times. It's is nice because some app have encrypt or generation dynamic data, we can execute it n times to get the return data.

theblackturtle avatar Jul 29 '18 04:07 theblackturtle

Hey, that is totally customizable; House is a tool that generate a base frida script for you; but I would not add features for specific cases such as this one; you can use the script House already generated and add an counter loop; should be just couple lines of javascript; there is no point for me to add a special feature for that.

H4oK3 avatar Jul 29 '18 14:07 H4oK3

I don't think this works on a non root phone if we repack the apk with frida?

imdadvs avatar Oct 10 '18 05:10 imdadvs