Skip to content
K4N3 edited this page Nov 23, 2026 · 3 revisions

Typing Banner

Welcome to the official documentation hub for Lab-RATS by K4N3CO.

⚠️ Legal & Ethical Disclaimer: Lab-RATS is developed strictly for educational purposes, authorized security research, and controlled device-management testing. Always obtain explicit written authorization before deploying payloads on any device.


Typing Banner

Section Description Repository Reference
🚀 Getting Started Environment setup, dependencies, and 3-step quickstart. Quickstart.md & Requirements.md
🌐 C2 Architecture Choosing between Direct IPv6 (P2P) and Render Cloud Relay. C2 Deployment.md & Architecture.md
📦 Payload Builder Generating signed APKs, decoy personas, and delivery vectors. Building Payloads.md
🎭 Stealth & Recovery Masquerade decoys, anti-removal shields, and emergency backdoors. Stealth and Persistence.md
🖥️ Dashboard & API Guide to the 13 C2 control tabs, Termux bridge, and HTTP endpoints. Device HTTP-API.md & Dashboard Reference.md

Typing Banner

Before building payloads or hosting the Command & Control (C2) relay, verify your environment meets these requirements:

  • Workstation (APK Compilation):
    • JDK: JDK 17 or JDK 21 (JDK 21 recommended, with JAVA_HOME configured)
    • Android SDK: API Level 34+ & Build-Tools 34.0.0+ (aapt2, zipalign, apksigner)
    • Python 3.x: Required for Smali Surgery & APK Binding (binder.py)
  • C2 Relay Server (Optional):
    • Node.js: v18.0.0+ and npm v9.0.0+ (512 MB RAM minimum; Render Free Tier supported)
  • Target Device Support:
    • OS Version: Android 5.0 (API 21) through Android 17 (API 37)

Typing Banner

Lab-RATS supports TWO distinct networking architectures depending on your lab & test device setup:

1. Direct IPv6 Mode (Zero-Server P2P)

  • How it works: Runs an embedded NanoHTTPD server directly on the Android device on port 9191.
  • Pros: Eliminates CGNAT and router port-forwarding issues on cellular/IPv6 networks with near-zero latency.
  • Tracking: Uses a Google Apps Script webhook to log device IPv6 addresses, battery status, and active links into a Google Sheet.

2. Render Cloud Relay Mode (Dual-Stack IPv4/IPv6)

  • How it works: Deploys c2-server/server.js (Node.js/Express/WebSockets) to a cloud host like Render.com.
  • Pros: Works behind strict IPv4 NATs/firewalls, supports fleet management across multiple devices, and provides an Exfiltration Vault for automatic audio/video uploads.
📸 View Direct IPv6 (Google Sheet) vs. Render Cloud Relay (Node.js) Chart
Screenshot 2026-11-16 at 5 24 11 PM

Typing Banner

  1. Clone the Repository:
    git clone https://github.com/K4N3CO/Lab-RATS.git
    cd Lab-RATS/apk-builder/
  2. Launch the Builder:
  • Linux/macOS:

    chmod +x build.sh && ./build.sh
    
  • Windows:

    build.bat
    
  1. Configure & Compile:
    • Select Option 1 (Manual) for standard APK customization (App Name, Package ID, Icon)
    • Select Option 6 (Infection Chain Wizard) for automated hosting and carrier wrapping.
    • Paste your Google Webhook URL or Render C2 URL when prompted.
    • Change Default Password: admin1337.
    • Retrieve your compiled payload from apk-builder/output/.
  2. Access the C2 Dashboard:
    • Navigate to your device's IPv6 URL (http://[IPv6]:9191) or your Render dashboard.
    • Change Default Password: admin1337.

Typing Banner

Action Trigger / Command Result
Unmask via Dialer Dial *#1337# on target keypad Reveals the hidden Lab-RATS interface.
Screen Tap Backdoor Rapidly tap center of decoy app 10 times Unlocks C2 UI temporarily (re-hides on close).
SMS Remote Restart Text !RESTART_C2 to target device Forces background C2 services back online.
Enable Termux Bridge Run echo "allow-external-apps = true" >> ~/.termux/termux.properties Allows C2 terminal to route pkg, python, and nmap commands.

Typing Banner

File Subject & Contents
00-Quickstart.md 3-step quickstart guide from clone to live dashboard connection.
01-Requirements.md Workstation build host, JDK, Android SDK, and device compatibility.
02-Building Payloads.md Builder menu options, configuration keys, and decoy personas.
03-C2 Deployment.md C2 deployment options: Render C2 relay, Direct IP, Google Sheets.
04-Device HTTP-API.md Device HTTP API reference for control endpoints.
05-Dashboard Reference.md Overview of the 13 C2 dashboard tabs and features.
06-Stealth and Persistence.md Decoy personas, 10-tap backdoor, watchdog layers, and anti-removal.
07-Troubleshooting.md Solutions for common build, installation, and connection issues.
08-Architecture.md High-level system architecture diagram and component map.
09-Security Notes.md Security considerations, authentication, and forensic reduction.
10-FAQ.md Frequently asked questions and answers.
11-Maintaining Your Fork.md Guidelines for rebranding and syncing upstream updates.
12-Server Setup.md C2 server setup guide for Render.com and Linux VPS.
13-Direct IPv6 Hardening.md Direct IPv6 connection & pre-flight security hardening guide.
14-Free IPv6 Hosting.md Free hosting provider comparison.