You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`jnitrace` requires a minimum of two parameters to run a trace:
32
-
*`-l` - is used to specify the libraries to trace. This can be a list of libraries or `*`if you want to trace all libraries.
33
-
*`-p` - is used to specify the process to trace. It needs to be given in the form of an Android package.
32
+
*`-l libnative-lib.so` - is used to specify the libraries to trace. This argument can be used multiple times or `*`can be used to track all libraries.
33
+
*`com.example.myapplication` - is the Android package to trace. This package must already be installed on the device.
34
34
35
35
Optional arguments are listed below:
36
-
*`-i <spawn|attach>` - is used to specify the Frida attach mechanism to use. It can either be spawn or attach. Spawn is the default option.
37
-
*`-b <fuzzy|accurate>` - is used to control backtrace output. Fuzzy will use
36
+
*`-m <spawn|attach>` - is used to specify the Frida attach mechanism to use. It can either be spawn or attach. Spawn is the default option.
37
+
*`-b <fuzzy|accurate|none>` - is used to control backtrace output. Fuzzy will use
38
38
the Frida FUZZY Backtracer, whereas accurate will use the Frida ACCURATE
39
-
Backtracer.
40
-
*`-d` - is used to control whether the trace output should show any
41
-
additional data for the method arguments. This will include buffers passed to
42
-
a function or strings.
39
+
Backtracer. None will prevent the backtracer from running.
40
+
*`-i <regex>` - is used to specify the method names that should be traced. This can be helpful for reducing the noise in particularly noisy JNI apps. The option can be supplied multiple time.
41
+
*`-e <regex>` - is used to specify the method names that should be ignored in the trace. This can be helpful for reducing the noise in particularly noisy JNI apps. The option can be supplied multiple time.
42
+
*`-o path/output.json` - is used to specify an output path where `jnitrace` will store all traced data. The information is stored in JSON format to allow later post-processing of the trace data.
43
+
*`-p path/to/script.js` - the path provided is used to load a Frida script into the target process before the `jnitrace` script has loaded. This can be used for defeating anti-frida or anti-debugging code before `jnitrace` starts.
44
+
*`-a path/to/script.js` - the path provided is used to load Frida script into the target process after `jnitrace` has been loaded.
45
+
*`--hide-data` - used to reduce the quantity of output displayed in the console. This option will hide additional data that is displayed as hexdumps or as string de-references.
46
+
*`--ignore-env` - using this option will hide all calls the app is making using the JNIEnv struct.
47
+
*`--ignore-vm` - using this option will hide all calls the app is making using the JavaVM struct.
43
48
44
49
***Note***
45
50
@@ -54,18 +59,15 @@ instructions for installing frida have been followed, the following command will
54
59
Building `jnitrace` from source requires that `node` first be installed.
55
60
After installing `node`, the following commands need to be run:
0 commit comments