ADB ANDROID MALWARE POC FOR RESEARCH AND DEVELOPMENT ONLY DO NOT USE THIS TO INFECT DEVICES THAT IS A CRIME!
The script connects to Android devices using the Android Debug Bridge (ADB) through the Shodan API, which searches for devices with open ADB ports. It starts by importing necessary libraries and initializing the Shodan API with a key. The user is prompted to enter a command payload to execute on the devices. The adb_connection function establishes a TCP connection to the specified device, executes the given command, and retrieves output such as SSH credentials and the device's IMEI number. It also attempts to dump the kernel log, which can contain sensitive information. Any found SSH credentials are saved to a file. The main function, search_and_execute, searches for devices with open ADB ports and creates a new thread for each connection, allowing multiple devices to be processed simultaneously. It handles exceptions to ensure that errors are reported without crashing the script.If you want to specify versions, you can run pip freeze after installing the packages to see the versions currently in your environment, and then adjust the file accordingly. Here’s a command to create the requirements.txt directly from your current environment by typing pip freeze > requirements.txt
This Python script connects to Android devices using the Android Debug Bridge (ADB) through the Shodan API. It retrieves sensitive information and executes commands on devices with open ADB ports.
- Searches for devices with open ADB ports using Shodan.
- Executes user-defined command payloads.
- Retrieves and saves SSH credentials and IMEI numbers.
- Handles multiple connections concurrently with threading.
To run this script, you'll need to install the required dependencies. You can do this by running:
pip install -r requirements.txt
Usage Clone the repository
git clone https://github.com/SleepTheGod/Android-Malware.git
cd Android-Malware
Open the main.py file and replace the placeholder for the Shodan API key with your actual key.
Run the script
python main.py
Enter the command you want to use as the payload when prompted.
Note This script is intended for educational purposes only. Ensure you have permission to access any devices you connect to.
THE CREATOR OF THIS REPO IS NOT RESPONSIBLE for any actions taken with this repository or script.