Repository navigation
Home
K4N3 edited this page Nov 23, 2026
·
3 revisions
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.
| Section | Description | Repository Reference |
|---|---|---|
| 🚀 Getting Started | Environment setup, dependencies, and 3-step quickstart. |
docs/00-Quickstart.md & 01-Requirements.md
|
| 🌐 C2 Architecture | Choosing between Direct IPv6 (P2P) and Render Cloud Relay. |
docs/03-C2 Deployment.md & 08-Architecture.md
|
| 📦 Payload Builder | Generating signed APKs, decoy personas, and delivery vectors. | docs/02-Building Payloads.md |
| 🎭 Stealth & Recovery | Masquerade decoys, anti-removal shields, and emergency backdoors. | docs/06-Stealth and Persistence.md |
| 🖥️ Dashboard & API | Guide to the 13 C2 control tabs, Termux bridge, and HTTP endpoints. |
docs/04-Device HTTP-API.md & 05-Dashboard Reference.md
|
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_HOMEconfigured) -
Android SDK: API Level 34+ & Build-Tools
34.0.0+(aapt2,zipalign,apksigner) -
Python 3.x: Required for Smali Surgery & APK Binding (
binder.py)
-
JDK: JDK 17 or JDK 21 (JDK 21 recommended, with
-
C2 Relay Server (Optional):
-
Node.js:
v18.0.0+andnpm v9.0.0+(512 MB RAM minimum; Render Free Tier supported)
-
Node.js:
-
Target Device Support:
- OS Version: Android 5.0 (API 21) through Android 17 (API 37)
Lab-RATS supports TWO distinct networking architectures depending on your lab & test device setup:
-
How it works: Runs an embedded
NanoHTTPDserver directly on the Android device on port9191. - 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.
-
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
-
Clone the Repository:
git clone https://github.com/K4N3CO/Lab-RATS.git cd Lab-RATS/apk-builder/ -
Launch the Builder:
-
Linux/macOS:
chmod +x build.sh && ./build.sh -
Windows:
build.bat
-
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/.
-
Access the C2 Dashboard:
- Navigate to your device's IPv6 URL (
http://[IPv6]:9191) or your Render dashboard. - Change Default Password:
admin1337.
- Navigate to your device's IPv6 URL (
| 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. |
| 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. |