Closed mabdi closed 6 years ago
Does connecting using Frida tools work? For example using: frida-ps -Ria
.
Hi @leonjza,
I'm having the same issue here. I can see the original poster didn't reply to your question but in my case I'm not able to connect with the Frida tools nor objection. It looks like the Frida Gadget is either not starting or not opening the socket properly. I ran netstat to check this and didn't see the open port.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 :::5353 :::*
udp 0 0 :::5353 :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 4107 /dev/socket/logd
unix 2 [ ACC ] SEQPACKET LISTENING 4112 /dev/socket/logdr
unix 2 [ ACC ] STREAM LISTENING 4124 /dev/socket/vold
unix 2 [ ACC ] STREAM LISTENING 4129 /dev/socket/cryptd
unix 2 [ ACC ] STREAM LISTENING 5526 @jdwp-control
unix 2 [ ACC ] SEQPACKET LISTENING 4143 /dev/socket/lmkd
unix 2 [ ACC ] STREAM LISTENING 5163 /dev/socket/property_service
unix 2 [ ACC ] STREAM LISTENING 6233 /dev/socket/installd
unix 2 [ ACC ] STREAM LISTENING 4185 /dev/socket/adbd
unix 2 [ ACC ] STREAM LISTENING 6244 /dev/socket/netd
unix 2 [ ACC ] STREAM LISTENING 6249 /dev/socket/dnsproxyd
unix 2 [ ACC ] STREAM LISTENING 6252 /dev/socket/mdns
unix 2 [ ACC ] STREAM LISTENING 6255 /dev/socket/fwmarkd
unix 2 [ ACC ] STREAM LISTENING 6268 /dev/socket/rild
unix 2 [ ACC ] STREAM LISTENING 6276 /dev/socket/rild-debug
unix 2 [ ACC ] STREAM LISTENING 3273 @android:debuggerd
unix 2 [ ACC ] STREAM LISTENING 4264 /dev/socket/zygote
unix 2 [ ACC ] STREAM LISTENING 9252 /data/system/ndebugsocket
I also tried to connect to the port directly through netcat and just got "Connection Refused" errors.
I suppose the issue with troubleshooting this is whether this is an issue with Objection or an issue with the Frida Gadget. Any help you could provide would be great though.
So there's an issue with the latest releases of the Frida Gadget and not with Objection itself. I have gone and manually patched my APKs with the Frida Gadget 10.6.32 release. I've not worked out the latest working version, but if you're stuck then I recommend using this version and manually patching your binaries.
Thanks for the updates @burrowingsec ! I am going to add a --version
flag to the patcher soon to help with this. Could you tell me if adb logcat
has anything of interest with the latest gadgets?
I have added the --gadget-version
flag to the patchers in objection v1.2.4. Could you try an older gadget like 10.6.20
and see if that works?
Thanks!
After some testing, it seems like the 10.6.33 gadget is the last one that is working as expected. Will debug this further.
I've been doing some other work today so haven't had a chance to grab the logcat output. Do you still need it or did you grab your own output during testing?
Also, thanks for the quick push of the --gadget-version
flag. I've had success with that whilst patching an IPA. objection is a brilliant tool.
I grabbed quite a bit during testing and have concluded that 10.6.33 is the latest version that still works as expected for Android. I have poked @oleavr on Telegram for some ideas and will debug this further.
Thanks.
The latest gadgets have been fixed since https://github.com/frida/frida-core/commit/b46081304f904773882f6efac4507c627a38fcdb (tagged in Frida 10.6.55) and should work as expected again.
I have used following command to connect to the server running inside an emulator, but an error occurs:
maybe useful:
and I'm using windows 7