A Malleable, Cross-Platform C2 Framework with WordPress Mimicry & DNS Exfiltration
Ranger is a command and control framework designed for red team operations, security research, and adversary simulation. It features a three-stage deployment model, advanced evasion techniques, and a modular payload architecture that works across Windows, Linux, macOS, Android, and iOS.
/payloads directory
┌─────────────┐ HTTPS ┌─────────────┐ DNS ┌─────────────┐
│ STAGER │ ─────────────> │ C2 │ ───────────> │ CLIENT │
│ (compiled) │ <───────────── │ Server │ <─────────── │ Implant │
└─────────────┘ Payloads └─────────────┘ Queries └─────────────┘
│
▼
┌─────────────┐
│ WordPress │
│ Nginx Mask │
└─────────────┘
# Ubuntu/Debian
sudo apt-get update
sudo apt-get install -y nginx python3-pip openssl
# Python packages
pip3 install flask cryptography pycryptodome dnspython --break-system-packages
# Clone the repository
git clone https://github.com/ekomsSavior/ranger.git
cd ranger
sudo ./deploy.sh
python3 c2.py
# Windows stager
pyinstaller --onefile --noconsole --name svchost.exe stager.py
# Linux stager
pyinstaller --onefile --name packagekitd stager.py
# macOS stager
pyinstaller --onefile --name metadatah stager.py
python3 dnstunnel.py
Access https://your-c2:4444/phase1/dashboard to:
- View active implants with process names and jitter scores
- Send commands (shell, recon, file operations)
- Enable DNS tunneling for exfiltration
- Monitor exfiltrated data
The framework includes 30+ ready-to-use payloads:
| Category | Payloads |
|---|---|
| Recon | sysrecon.py, linpeas_light.py, cloud_detector.py |
| Credential Theft | browserstealer.py, hashdump.py, aws_credential_stealer.py |
| Persistence | advanced_cron_persistence.py, process_inject.py |
| Evasion | logcleaner.py, dnstunnel.py, polyloader.py |
| Lateral Movement | sshspray.py, container_escape.py |
| Impact | fileransom.py, ddos.py, k8s_secret_stealer.py |
c2.py)C2_PORT = 4444
C2_HOST = '0.0.0.0'
DNS_DOMAIN = "updates.your-domain.com"
COOKIE_NAMES = ['_ga', '_gid', 'xsid', 'PHPSESSID', 'wordpress_']
nginx/wordpress-mask.conf)implant.py)This software is intended for authorized security testing and educational purposes only. Users are responsible for complying with all applicable laws and regulations. The authors assume no liability for misuse or damage caused by this program.
// click a file to view source