WithSecureLabs / drozer

The Leading Security Assessment Framework for Android.
https://labs.withsecure.com/tools/drozer
Other
3.82k stars 770 forks source link

I tried connecting my emulator to drozer but getting this error. I followed every steps same like mentioned in docs #457

Closed sivalive123 closed 1 week ago

sivalive123 commented 2 months ago

docker run --net host -it withsecurelabs/drozer console connect --server 10.0.2.16 Socket Error <class 'RuntimeError'> yayerroryay you probably didn't specify a valid drozer server and that's why you're seeing this error message There was a problem connecting to the drozer Server.

Things to check:

Debug Information: [Errno 111] Connection refused

Yogehi commented 2 months ago

1) what is the IP address and subnet of your computer? 2) what is the IP address of your android device 3) what operating system are you running on your computer 4) what version of drozer is running on your android device?

Yogehi commented 2 months ago

last chance to reply before i close this ticket

joshuaspy commented 1 month ago

I having the same issue. Below are the details:

2024-07-19 17_08_56-Emulator

Below are the steps I used before taken over by WithSecureLabs and it was working fine for me: Drozer

Next, obtain a shell into the container while adding an address to the container's Hosts file: docker run -it --add-host host.docker.internal:host-gateway fsecurelabs/drozer

Finally, connect to drozer: drozer console connect --server host.docker.internal

cyberMilosz commented 1 month ago

@joshuaspy: I mean, that doesn't sound like the same issue at all (you're connecting in entirely different ways), but you're right that the instructions for Docker + Windows should probably differ. The approach you described towards the end of your message should be pretty much correct for Windows. Have you tried it?

That said... is there a particular reason why you're using Docker on what seems to be a pretty standard Windows 11 box? Why add a layer of complexity to your stack?