Automated Crossfire Legends account registration with email verification.
- Windows
- Linux/Mac
- Android (Termux + Termux-X11)
- Configuration
- Output Files
- Requirements
- Supported Browsers
Windows
- Double-click
run.bat(handles everything automatically)
npm install
npm run build
npm startnpm install
npm run devLinux/Mac
npm install
npm run build
npm startOr dev mode (no build):
npm install
npm run devAndroid (Termux + Termux-X11)
# Install required packages (bot auto-detects Chromium)
pkg install nodejs git chromium x11-repo
pkg install termux-x11-nightly
# Clone and setup project
git clone https://github.com/mra1k3r0/cflreferral-auto.git
cd cflreferral-auto
npm install
npm run build
# Start X11 server in background
termux-x11 :0 &
# Run bot with X11 display (auto-detects browser)
export DISPLAY=:0
npm start
# Or dev mode (no build): npm run devEdit src/config/defaults.ts:
useProxy: 1, // 0=direct, 1=HTTP file, 2=HTTPS file, 3=SOCKS4, 4=SOCKS5, 5=stable
proxyFile: "proxy.txt" // Your proxy listEdit proxy.txt with your proxy details:
# Format: host:port:username:password (for authenticated proxies)
# Format: host:port (for non-authenticated proxies)
# Examples:
http://proxy.example.com:8080:username:password
socks5://socks.example.com:1080:username:password
192.168.1.100:3128:user:pass123
proxy.provider.com:8080
Set useProxy: 1 in src/config/defaults.ts for HTTP proxies, useProxy: 4 for SOCKS5, etc.
Create a .env file in the project root:
# Required: Your Crossfire Legends referral code
REFERRAL_CODE=your-referral-codeNote: REFERRAL_CODE is required for the bot to work. Email and password are randomly generated if not specified.
export REFERRAL_CODE="your-referral-code"Enable automatic continuous registration by editing src/config/defaults.ts:
continuousMode: true, // Enable auto-restart after each successful registration
maxContinuousSessions: 50, // Maximum sessions before stopping (0 = unlimited)
inactivityTimeout: 300000, // Stop if no activity for 5 minutes (300000ms)valid.txt- Successfully created accountslogs/bot.log- Execution logs- Screenshots automatically saved on errors
| Component | Version/Requirement | Notes |
|---|---|---|
| Node.js | 16+ | Required runtime |
| npm | Latest | Package manager |
| Browser | Chromium/Chrome/Firefox | Auto-detected system browser |
| Component | Version/Requirement | Notes |
|---|---|---|
| Termux | Latest | Android terminal emulator |
| Termux-X11 | Latest | X11 server for GUI apps |
| Browser | Platform | Notes |
|---|---|---|
| Chromium | All platforms | Recommended for Termux/Android |
| Google Chrome | Windows/macOS/Linux | Excellent performance |
| Firefox | All platforms | Good alternative |
| Other | Compatible browsers | Puppeteer Core compatible |
Note: Puppeteer Core automatically detects and configures system-installed browsers.
Educational purposes only. Use responsibly.
This project is licensed under the MIT License - see the LICENSE file for details.