Giter VIP home page Giter VIP logo

adbsploit's Introduction

ADBSploit

A python based tool for exploiting and managing Android devices via ADB

Currently on development

  • Screenrecord
  • Stream Screenrecord
  • Extract Contacts
  • Extract SMS
  • Extract Messasing App Chats WhatsApp/Telegram/Line
  • Install Backdoor
  • And more...

Installation

# First Download or clone repo
git clone https://github.com/mesquidar/adbsploit.git
# Move to the directory
cd adbsploit
# Install it
python setup.py install
# Excute 
adbsploit
# Enjoy!!

Requirements

  • Python 3.X

Usage

  • Execute the command: devices
  • Then select the device with: select
  • You can connect to device using the command: connect
  • Type help for more information

Functionalities

v0.2.1

Corrections on help and version commands

Added

  • Screenrecord
  • Remote Control

v0.2

Added:

  • Fixed setup and installation
  • Extract Contacts
  • Extract SMS
  • Send SMS
  • Recovery Mode
  • Fastboot Mode
  • Device Info
  • Kill Process

v0.1

  • List Devices
  • Connect Devices
  • TCPIP
  • Forward Ports
  • Airplane Management
  • Wifi Management
  • Sound Control
  • List/Info Apps
  • WPA Supplicant Extraction
  • Install/Uninstall Apps
  • Shutdown/Reboot
  • Logs
  • Start/Stop/Clear Apps
  • Show Inet/MAC
  • Battery Status
  • Netstat
  • Check/Unlock/Lock Screen
  • Turn On/Off Screen
  • Swipe Screen
  • Screencapture
  • Send Keyevent
  • Open Browser URL
  • Process List
  • Dump Meminfo/Hierarchy

adbsploit's People

Contributors

iint3liig3ncii avatar mesquidar avatar witblack avatar xenador77 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adbsploit's Issues

It's not an exploint

Lmao it isn't even an exploit, it just types text, and do things that normal adb does, lmao.

Connection refused

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

Can you help me please?

Error when using the 'devices' command

I have an error when running the 'devices' command
I am on kali-linux (Debian 11.3.0-5)
Here is the kernel version : 5.18.0-kali7-amd64
and the python version : Python 3.10.7

Here is the error:

# adbsploit                                                                                                                                     1 ⨯
adbsploit(none) > devices
Traceback (most recent call last):                                                                                                                    
  File "/usr/local/bin/adbsploit", line 33, in <module>                                                                                               
    sys.exit(load_entry_point('adbsploit==0.1', 'console_scripts', 'adbsploit')())                                                                    
  File "/usr/local/lib/python3.10/dist-packages/adbsploit-0.1-py3.10.egg/adbsploit/adbsploit.py", line 39, in main                                    
  File "/usr/local/lib/python3.10/dist-packages/adbsploit-0.1-py3.10.egg/adbsploit/adbsploit.py", line 244, in devices                                
  File "/usr/local/lib/python3.10/dist-packages/adbutils/__init__.py", line 649, in model                                                             
    return self.get("ro.product.model", cache=True)                                                                                                   
  File "/usr/local/lib/python3.10/dist-packages/adbutils/__init__.py", line 640, in get                                                               
    value = self._d._properties[name] = self._d.shell(['getprop', name]).strip()                                                                      
  File "/usr/local/lib/python3.10/dist-packages/adbutils/__init__.py", line 485, in shell                                                             
    ret = self._client.shell(self._serial, cmdargs, stream=stream, timeout=timeout)                                                                   
  File "/usr/local/lib/python3.10/dist-packages/adbutils/__init__.py", line 241, in shell                                                             
    c.check_okay()                                                                                                                                    
  File "/usr/local/lib/python3.10/dist-packages/adbutils/__init__.py", line 156, in check_okay                                                        
    raise AdbError(self.read_string())                                                                                                                
adbutils.errors.AdbError: closed 

Not working

Hey this tool was not working , create a video for fix it

Problem executing setup.py

When I execute the command for install adbsploit it gives me an error:
Traceback (most recent call last):
File "setup.py", line 1, in
from setuptools import setup, find_packages
ImportError: No module named setuptools

¿Any solutions?

Connection error

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 61, in _safe_connect
return self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 53, 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.11/site-packages/adbsploit-0.1-py3.11.egg/adbsploit/adbsploit.py", line 45, in main
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbsploit-0.1-py3.11.egg/adbsploit/adbsploit.py", line 252, in connect
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 247, in connect
with self._connect(timeout=timeout) as c:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 171, in _connect
_conn = AdbConnection(self.__host, self.__port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 44, in init
self.__conn = self._safe_connect()
^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 64, in _safe_connect
return self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/adbutils/_adb.py", line 53, in _create_socket
s.connect((adb_host, adb_port))
ConnectionRefusedError: [Errno 111] Connection refused

Not working on Raspberry Pi 3B+/4 :'(

Not possible to Install it on Raspi OS (Raspberry Pi)..
Install ends with the follow Error

pi@raspberrypi:~/adbsploit $ sudo python setup.py install Traceback (most recent call last): File "setup.py", line 1, in <module> from setuptools import setup, find_packages File "build/bdist.linux-armv7l/egg/setuptools/__init__.py", line 21, in <module> File "build/bdist.linux-armv7l/egg/setuptools/version.py", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/setuptools-49.2.1-py2.7.egg/pkg_resources/__init__.py", line 1380 raise SyntaxError(e) from e ^ SyntaxError: invalid syntax

pkg_resources.DistributionNotFound: The 'rich' distribution was not found and is required by adbsploit

Traceback (most recent call last):
File "/usr/local/bin/adbsploit", line 6, in
from pkg_resources import load_entry_point
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3251, in
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3235, in _call_aside
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3264, in _initialize_master_working_set
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 583, in _build_master
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 900, in require
File "/usr/share/cffi-wheels/setuptools-44.1.0-py2.py3-none-any.whl/pkg_resources/init.py", line 786, in resolve
pkg_resources.DistributionNotFound: The 'rich' distribution was not found and is required by adbsploit

error using devices command

what i'm doing wrong?

adbsploit(none) > devices
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 94, in _connect
self.__conn = self._create_socket()
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 86, 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 "/usr/local/bin/adbsploit", line 33, in
sys.exit(load_entry_point('adbsploit==0.1', 'console_scripts', 'adbsploit')())
File "/usr/local/lib/python3.8/dist-packages/adbsploit-0.1-py3.8.egg/adbsploit/adbsploit.py", line 25, in main
File "/usr/local/lib/python3.8/dist-packages/adbsploit-0.1-py3.8.egg/adbsploit/adbsploit.py", line 212, in devices
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 388, in device_list
return list(self.iter_device())
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 369, in iter_device
with self._connect() as c:
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 177, in _connect
return _AdbStreamConnection(self.__host, self.__port)
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 79, in init
self._connect()
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 97, in _connect
self.__conn = self._create_socket()
File "/usr/local/lib/python3.8/dist-packages/adbutils-0.8.2-py3.8.egg/adbutils/init.py", line 86, in _create_socket
s.connect((adb_host, adb_port))
ConnectionRefusedError: [Errno 111] Connection refused

Connection refused

Sir when we connect try to connect with ip then he showing connection refused
Please solve it please
And massage me on gmail
My email address is : [email protected]

therse a backdoor in this script

#TODO
def backdoor():
global device
if device != 'none':
if shutil.which("msfvenom") is not None:
try:
d = adbutils.adb.device(device)
print(arrow + ("[{0}+{1}] Specify the payload: (com.whatsapp)").format(Fore.RED, Fore.WHITE))
table = Table()
table.add_column("Name", style="cyan")
table.add_column("Description", style="magenta")
table.add_row("meterpreter_reverse_http", "Android Meterpreter Reverse HTTP Stager")
table.add_row("meterpreter_reverse_https", "Android Meterpreter Reverse HTTPS Stager")
table.add_row("meterpreter_reverse_tcp", "Android Meterpreter Reverse TCP Stager")
table.add_row("meterpreter_reverse_http_inline", "Android Meterpreter Reverse HTTP Inline")
table.add_row("meterpreter_reverse_https_inline", "Android Meterpreter Reverse HTTPS Inline")
table.add_row("meterpreter_reverse_tcp_inline", "Android Meterpreter Reverse TCP Inline")
table.add_row("shell_reverse_http", "Android Command Shell Reverse HTTP Stager")
table.add_row("shell_reverse_https", "Android Command Shell Reverse HTTP Stager")
table.add_row("shell_reverse_tcp", "Android Command Shell Reverse HTTP Stager")
console = Console()
console.print(table)
print(arrow + ("[{0}+{1}] Specify the payload: (meterpreter_reverse_http)").format(Fore.RED, Fore.WHITE))
payload = my_input(arrow + " adbsploit" + Fore.RED + "(backdoor) " + Fore.WHITE + "> ")
if payload == "":
print()
elif payload == "meterpreter_reverse_http":
print()
elif payload == "meterpreter_reverse_https":
print()
elif payload == "meterpreter_reverse_tcp":
print()
elif payload == "meterpreter_reverse_http_inline":
print()
elif payload == "meterpreter_reverse_https_inline":
print()
elif payload == "meterpreter_reverse_tcp_inline":
print()
elif payload == "shell_reverse_http":
print()
elif payload == "shell_reverse_httpS":
print()
elif payload == "shell_reverse_TCP":
print()
else:
print(arrow + ("[{0}+{1}] Select a correct payload...").format(Fore.RED, Fore.WHITE))
except:
print(arrow + ("[{0}+{1}] An error ocurred generating the backdoor...").format(Fore.RED, Fore.WHITE))
else:
print(arrow + ("[{0}+{1}] ADBSploit use Metasploit for generating backdoors, you must install to use this option").format(
Fore.RED, Fore.WHITE))
print(arrow + (
"[{0}+{1}] Install it via https://github.com/rapid7/metasploit-framework/wiki/Nightly-Installers ").format(
Fore.RED, Fore.WHITE))
else:
print(arrow + ("[{0}+{1}] You must select a device before...").format(Fore.RED, Fore.WHITE))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.