Quick Start link
Everything is pre-configured. Build and run immediately:
# Inside attacker VM (auto-logged in)
cd epirootkit && ./deploy_c2.sh
# ✅ Builds rootkit automatically
# ✅ Builds dropper app
# ✅ C2 server: port 4444
# ✅ Web interface: port 3000
# ✅ Landing page dropper: port 8080
Deploy Script Options link
The deploy_c2.sh
script supports selective component building:
# Build everything (default)
./deploy_c2.sh
# Build only specific components
./deploy_c2.sh -r # Build only rootkit (epirootkit.ko)
./deploy_c2.sh --c2 # Build only C2 server and web interface
./deploy_c2.sh -d # Build only dropper and landing page
# Build without starting servers
./deploy_c2.sh --no-start # Build all components but don't start servers
./deploy_c2.sh --c2 --no-start # Build C2 without starting servers
# Combine options
./deploy_c2.sh -r -d # Build rootkit and dropper only
# Get help
./deploy_c2.sh -h # Show all available options
Available Options:
-r, --rootkit
: Build only rootkit kernel module--c2
: Build only C2 server and web interface-d, --dropper
: Build only dropper and start landing page--no-start
: Build components but don’t start servers-h, --help
: Show help message
Prerequisites on the VM link
The setup requires the setup_attacker.sh
script. You have two options to obtain it:
Option 1: Get it from the host with python (recommended)
# In the scripts/ directory on the host
python3 -m http.server 8080
Then on the attacker VM:
wget http://192.168.200.1:8080/setup_attacker.sh
chmod +x setup_attacker.sh
Option 2: Download from GitHub Gist
wget https://gist.githubusercontent.com/KazeTachinuu/397da3d739384de9e592a2e6f26b7cc0/raw/0895738fbf9dccc16dd6fe1139eb206ec9024076/setup_attacker.sh
chmod +x setup_attacker.sh
1. Install Dependencies (inside VM):
This installs:
- Node.js 18.x LTS
- Build tools (gcc, make, linux-headers-$(uname -r), python3)
- SSH server
2. Deploy Project (from host):
./scripts/deploy_project.sh
# ✅ Transfers all project files via SSH
3. Auto Build and Start (inside VM):
cd epirootkit && ./deploy_c2.sh
# ✅ Builds rootkit automatically
# ✅ Installs C2 dependencies
# ✅ Starts C2 server + Web UI
Note: The deploy_c2.sh
script supports the same selective building options as shown in the Pre-built tab.