Main server configuration file:
{ "domain": "your-domain.com", "port": "443", "http_port": "80", "tls_cert": "./tls/cert.pem", "tls_key": "./tls/key.pem", "admin_panel": { "enabled": true, "username": "admin", "password": "changeme" }, "logging": { "level": "info", "file": "./logs/system.log", "max_size": "100MB" } }
Your phishing domain (must match SSL certificate)
Web interface credentials (change default password!)
Sauron uses an advanced secure configuration system that encrypts secrets in memory and automatically clears environment variables after startup for enhanced security.
⚠️ Security Note: All environment variables are automatically cleared after loading to prevent exposure in process memory or environment dumps.
Master key for admin panel and encryption derivation
export ADMIN_KEY="your_secure_admin_key_here"
Cloudflare Turnstile secret key for bot protection
export TURNSTILE_SECRET="0x123..."
Secret for license validation and JWT signing
export LICENSE_TOKEN_SECRET="your_license_secret"
Tip: Use configure-env.sh
script to set these automatically.
Sauron uses SQLite for storing configuration and captured data.
credentials
- Captured login datasessions
- Active user sessionsvisits
- Page visit trackingconfig
- System configuration# View database sqlite3 config.db ".tables" # Backup database cp config.db config.db.backup # Reset database rm config.db && ./sauron
Message @BotFather on Telegram and use /newbot
Copy the bot token (format: 123456789:ABC-DEF1234567890)
Message your bot, then visit: https://api.telegram.org/bot<TOKEN>/getUpdates
Sauron automatically obtains and renews SSL certificates using Let's Encrypt and Cloudflare DNS.
tls/cert.pem
- Certificatetls/key.pem
- Private keytls/domains.go
- Domain configTo use your own certificate:
# Copy your files cp your-cert.pem tls/cert.pem cp your-key.pem tls/key.pem
Note: Certificate domain must exactly match your SAURON_DOMAIN value.
Configure MITM proxy behavior:
logs/system.log
- Main system loglogs/bot.log
- Telegram bot loglogs/emits.log
- Event emissions# Check environment variables ./configure-env.sh check # Test domain resolution nslookup $SAURON_DOMAIN # Validate SSL certificate openssl s_client -connect $SAURON_DOMAIN:443 -servername $SAURON_DOMAIN # Test Telegram bot curl -s "https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getMe"