mesquidar / adbsploit

A python based tool for exploiting and managing Android devices via ADB
751 stars 111 forks source link

Connection refused #10

Open fuckwbored opened 3 years ago

fuckwbored commented 3 years ago

Hey! I used shodan to find target device. When i try to connect i have an error: connection refused

Can you help me please?

Omicron166 commented 3 years ago

try to connect using shell adb, if it also doesn't work then the problem is that it is not an adb port

Temuxuser2021 commented 2 years ago

Enter the phone IP address to connect └──> adbsploit(connect) > ............ Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 103, in _safe_connect return self._create_socket() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 95, in _create_socket s.connect((adb_host, adb_port)) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/adbsploit", line 33, in sys.exit(load_entry_point('adbsploit==0.1', 'console_scripts', 'adbsploit')()) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbsploit-0.1-py3.10.egg/adbsploit/adbsploit.py", line 37, in main File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbsploit-0.1-py3.10.egg/adbsploit/adbsploit.py", line 45, in main File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbsploit-0.1-py3.10.egg/adbsploit/adbsploit.py", line 235, in connect File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 263, in connect with self._connect(timeout=timeout) as c: File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 189, in _connect _conn = _AdbStreamConnection(self.host, self.port) File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 88, in init self.conn = self._safe_connect() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init.py", line 106, in _safe_connect return self._create_socket() File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/adbutils-0.11.0-py3.10.egg/adbutils/init__.py", line 95, in _create_socket s.connect((adb_host, adb_port)) ConnectionRefusedError: [Errno 111] Connection refused

Omicron166 commented 2 years ago

Either you don't have access to the device, or the port is closed

ChillVibesMushroom commented 2 years ago

Hey! I used shodan to find target device. When i try to connect i have an error: connection refused

Can you help me please?

Do you still need help some things to try are

pinging the device

looking into adb --help shows you the list of commands that you can use in order to set yourself up for success.

ChillVibesMushroom commented 2 years ago

EDIT: this works there are no issues.

Either you don't have access to the device, or the port is closed

Yo. If I am using adb over lan and I can connect via my ipv4:5555 by using adbtools why would I not be able to connect with the tool?.

How would I go about being able to connect using the tool. I know that I can disconnect from my ipv4:5555 and the adbridge will still send a signal So. that I can reconnect anytime, but for some reason I get connection refused from the tool. hahaha.