From 8beb912320c0e6f614656e8e25356eec3963589f Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Fri, 12 Oct 2018 20:11:43 +0300 Subject: [PATCH] get field with name as method --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9d03392..ec1d5f4 100644 --- a/README.md +++ b/README.md @@ -500,6 +500,16 @@ Java.use("android.app.Activity").onCreate.overload('android.os.Bundle').implemen #### TODOs +- (Java) Get field with which has name as a method ? underscore. [source](https://github.com/frida/frida-java/blob/master/lib/class-factory.js) +```js + const fields = invokeObjectMethodNoArgs(env.handle, classHandle, env.javaLangClass().getDeclaredFields); + ... + let fieldJsName = env.stringFromJni(fieldName); + while (jsMethods.hasOwnProperty(fieldJsName)) { + fieldJsName = '_' + fieldJsName; + } +``` + - Add GIFs & docs - Add links to /scripts - Extend universal SSL unpinning for [ios](https://codeshare.frida.re/@dki/ios10-ssl-bypass/) [andoid 1](https://github.com/Fuzion24/JustTrustMe/blob/master/app/src/main/java/just/trust/me/Main.java) [android 2](https://codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida/)