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

[feature] add function parameters logging in Frida code snippet #1497

Closed
ZachQin opened this issue May 28, 2022 · 1 comment
Closed

[feature] add function parameters logging in Frida code snippet #1497

ZachQin opened this issue May 28, 2022 · 1 comment

Comments

@ZachQin
Copy link
Contributor

ZachQin commented May 28, 2022

Add function parameters logging in Frida code snippet.
For Example, for the following Java method

 public String testJadx(Object object, String string, Integer integer) {
     return "1";
 }

generate the following Frida code

let MainActivity = Java.use("com.testjadx.MainActivity");
MainActivity["testJadx"].overload('java.lang.Object', 'java.lang.String', 'java.lang.Integer').implementation = function (object, string, integer) {
    console.log('testJadx is called' + ', ' + 'object: ' + object + ', ' + 'string: ' + string + ', ' + 'integer: ' + integer);
    let ret = this.testJadx(object, string, integer);
    console.log('testJadx ret value is ' + ret);
    return ret;
};

PR #1498

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

No branches or pull requests

2 participants