An all-in-one hacking tool written in Python to remotely exploit Android devices using ADB (Android Debug Bridge) and Metasploit-Framework.
This tool can automatically Create, Install, and Run payload on the target device using Metasploit-Framework and ADB to completely hack the Android Device in one click if the device has open ADB port TCP 5555.
The goal of this project is to make penetration testing and vulnerability assessment on Android devices easy. Now you don't have to learn commands and arguments, MehruXploit does it for you. Using this tool, you can test the security of your Android devices easily.
Tip
MehruXploit can also be used as a complete ADB Toolkit to perform various operations on Android devices over Wi-Fi as well as USB.
- Connect device using ADB remotely.
- List connected devices.
- Disconnect all devices.
- Access connected device shell.
- Stop ADB Server.
- Take screenshot and pull it to computer automatically.
- Screen Record target device screen for a specified time and automatically pull it to computer.
- Download file/folder from target device.
- Send file/folder from computer to target device.
- Run an app.
- Install an APK file from computer to target device.
- Uninstall an app.
- List all installed apps in target device.
- Restart/Reboot the target device to
System,Recovery,Bootloader,Fastboot. - Hack Device Completely :
- Automatically fetch your
IP Addressto setLHOST. - Automatically create a payload using
msfvenom, install it, and run it on target device. - Then automatically launch and setup Metasploit-Framework to get a
meterpretersession. - Getting a
meterpretersession means the device is completely hacked using Metasploit-Framework, and you can do anything with it.
- Automatically fetch your
- List all files and folders of the target devices.
- Copy all WhatsApp Data to computer.
- Copy all Screenshots to computer.
- Copy all Camera Photos to computer.
- Take screenshots and screen-record anonymously (Automatically delete file from target device).
- Open a link on target device.
- Display an image/photo on target device.
- Play an audio on target device.
- Play a video on target device.
- Get device information.
- Get battery information.
- Use Keycodes to control device remotely.
- Send SMS through target device.
- Unlock device (Automatic screen on, swipe up and password input).
- Lock device.
- Dump all SMS from device to computer.
- Dump all Contacts from device to computer.
- Dump all Call Logs from device to computer.
- Extract APK from an installed app.
- Mirror and Control the target device.
- Power off the target device.
- Scan local network for connected devices to get Target IP Address.
- Record Microphone Audio
- Stream Microphone Audio
- Record Device Audio
- Stream Device Audio
python3: Python 3.10 or Newerpip: Python Package Installeradb: Android Debug Bridgemetasploit-framework: Metasploit (msfvenom + msfconsole)scrcpynmap
MehruXploit does not need any installation and runs directly using python3.
Important
MehruXploit requires Python version 3.10 or higher. Please update Python before running the program.
Make sure all the required software are installed.
git clone https://github.com/CodeWithMehru/MehruXploit.git
cd MehruXploit/
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 mehruxploit.py
Make sure all the required software are installed.
git clone https://github.com/CodeWithMehru/MehruXploit.git
cd MehruXploit/
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
- Download and extract platform-tools from Google
- Copy everything from
platform-toolsinto the MehruXploit folder
python mehruxploit.py
- Open
Settings. - Go to
About Phone. - Tap
Build Number7 times. - Enter your lock screen password.
- Developer options will be enabled.
- Go to
System→Developer options. - Enable
USB debugging.
- Connect phone + PC to same Wi-Fi.
- Connect USB cable for first-time authorization.
- Run:
adb devices
- Press Allow USB Debugging.
- Then:
adb tcpip 5555
- Disconnect USB.
- Check phone’s IP in
About Phone → Status. - Run MehruXploit and connect using the IP.
Just open MehruXploit → Connect → Enter IP.
- Ubuntu
- Linux Mint
- Kali Linux
- Fedora
- Arch Linux
- Parrot OS
- Windows 11
- Termux (Android)
Note
Linux is recommended for best performance.
(Debian/Ubuntu)
sudo apt update
sudo apt install adb
(Fedora)
sudo dnf install adb
(Arch/Manjaro)
sudo pacman -Sy android-tools
brew install android-platform-tools
Download platform-tools from Google.
pkg update
pkg install android-tools
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
chmod 755 msfinstall && \
./msfinstall
Download installer from Metasploit.
Follow the official guide:
https://github.com/Genymobile/scrcpy#get-the-app
(Debian/Ubuntu)
sudo apt install nmap
(Fedora)
sudo dnf install nmap
(Arch/Manjaro)
sudo pacman -Sy nmap
brew install nmap
Download from nmap.org.
pkg install nmap
- This project is for educational purposes only.
- Developer is not responsible for misuse or damage.
- Do not use without permission.
- Use responsibly and legally.
- Intended for penetration testing on your own devices only.
Copyright © 2025 Code With Mehru
