Open euzada opened 3 years ago
Hi,
Thank you. I'm glad you like the tool.
So I think the issue is that you need to combine the commands you are trying. If you are connecting to a remote device you need the following:
jnitrace -l * -R
If the device is local you should just need this:
jnitrace -l * Gadget
Let me know if that helps.
Thanks
Thank you for your answer.
I forgot to mention that I am using termux on the actual device to trace jni. I don't know if termux needs different command.
Unfortunately, it didn't work. Both solutions failed.
For the first idea, here is the error:
~/.../shared/Download $ jnitrace -l libnex Gadget
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/jnitrace", line 33, in
For the second, the error is slightly different:
~/.../shared/Download $ jnitrace -l libnex -R : Gadget
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/jnitrace", line 33, in
Okay, can you try this:
jnitrace -l libnex* -R 127.0.0.1:27042 re.frida.Gadget
What I have done is making frida to read a customized configuration and listen in all interfaces
{
"interaction": {
"type": "listen",
"address": "0.0.0.0",
"port": 27042,
"on_port_conflict": "fail",
"on_load": "wait"
}
}
Run the app with frida gadget integrated, and wait.
Then invoke the following command to use jni trace from PC in the same LAN
jnitrace -l libname.so -R 10.0.0.3:27042 Gadget -m attach
Are you having the same issues for this one on newer Frida versions?
Hi, first thank you for writing this script.
I am trying to run it on unrooted android using frida gadget.
The server has been included correctly in the apk and loaded correctly (confirmed with frida-ps -R).
But can't run it using jnitrace.
I started the app with gadget config set to "wait". I tried the following code but all failed with error related to target: jnitrace: error: the following arguments are required: target
The command tested are the following:
jnitrace -l -R Gadget jnitrace -l -R re.frida.Gadget jnitrace -l -R localhost jnitrace -l -R localhost:27042 jnitrace -l -R 127.0.0.1:27042 jnitrace -l -R 127.0.0.1
None are working.
If I tried to run:
frida --codeshare chame1eon/jnitrace -R Gadget
It works but the output is a little messy and prefer using the python wrapper of jnitrace instead.
Any idea how to make it work? Thank you.