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

feat(gui): add parameters logging in Frida code snippet #1498

Merged
merged 1 commit into from
May 28, 2022

Conversation

ZachQin
Copy link
Contributor

@ZachQin 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";
 }

The following Frida code will be generated.

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;
};

When the method called in the following,

testJadx("obj", "str", 123);

Frida cli print the following output.

testJadx is called, object: obj, string: str, integer: 123
testJadx ret value is 1

#1497

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

Successfully merging this pull request may close these issues.

None yet

2 participants