Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use frida to watch va_list #19

Closed
axhlzy opened this issue Aug 12, 2020 · 2 comments
Closed

how to use frida to watch va_list #19

axhlzy opened this issue Aug 12, 2020 · 2 comments

Comments

@axhlzy
Copy link

axhlzy commented Aug 12, 2020

JNI函数中会存在变长参数,大概看了一下应该处理为pointer

但是具体怎么处理,取得这里面的值的,还请大佬科普一下 /xk

@chame1eon
Copy link
Owner

chame1eon commented Aug 13, 2020

Hi,

Thanks for your question. I hope this translates okay. JNI Trace hooks the getMethodID function so it can record how many Java arguments are used in a function. From this, it knows how many values to read from the variable-length parameters.

It is all automated so you do not need to worry about it. If you are using the jnitrace-engine plugin in your own project you get the Java arguments in the callback.

Hope that helps.

Thanks

@chame1eon
Copy link
Owner

Closing as over 2 weeks old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants