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
log4j-checker — Scripts de Bash y PowerShell para escanear un sistema de archivos local en busca de archivos .jar de Log4j que podrían ser vulnerables a CVE-2021-44228, también conocido como Log4Shell. | Kitploit
Herramientas/GitHubGitHub/occamsec/log4j-checker
Análisis EstáticoEscáneres de VulnerabilidadesAnálisis de VulnerabilidadesAnálisis de CódigoAnálisis de HashRespuesta a Incidentes
GitHuboccamsec/log4j-checker

log4j-checker

Scripts de Bash y PowerShell para escanear un sistema de archivos local en busca de archivos .jar de Log4j que podrían ser vulnerables a CVE-2021-44228, también conocido como Log4Shell.

Ver Repositorio
45hace 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 →
Sitio web
Compartir

Log4j-Checker

Este repositorio contiene scripts que pueden ayudar a identificar archivos .jar que pueden ser vulnerables a CVE-2021-44228, también conocido como Log4Shell.

Comprobación de Hash de Log4Shell

Este script buscará archivos .jar en el sistema de archivos a partir de una ruta específica, calculará un hash SHA-256 para cada archivo .jar encontrado - independientemente del nombre del archivo - y comparará este valor con una lista de hashes SHA-256 proporcionada por el usuario.

Los archivos de hash conocidos calculados a partir de las versiones oficiales de Log4j están disponibles en https://github.com/mubix/CVE-2021-44228-Log4Shell-Hashes, que es la fuente del archivo de hash incluido en este repositorio.

NOTA: si el archivo .jar de Log4j en uso dentro de su sistema ha sido modificado porque - por ejemplo - se compiló desde el código fuente, porque un proveedor aplicó personalizaciones de cualquier tipo, o porque las clases de Log4j se han incluido dentro de un archivo .jar más grande, su hash SHA-256 diferirá de la versión oficial correspondiente de Log4j y el script no podrá marcarlo.

Uso:

Bash (ejecutar con sudo para evitar problemas de permisos):

root@kitploit:~
log4shell_hash_check.sh <path> <sha256file>

E.g.: sudo ./log4shell_hash_check.sh / sha256sum.txt
      sudo ./log4shell_hash_check.sh ./ sha256sum.txt
      sudo ./log4shell_hash_check.sh /opt/tomcat/ sha256sum.txt

PowerShell (ejecutar desde un shell de administrador para evitar problemas de permisos):

root@kitploit:~
log4shell_hash_check.ps1 -path <path> -hashfile <sha256file>

E.g.: .\log4shell_hash_check.ps1 -path c:\ -hashfile sha256sum.txt
      .\log4shell_hash_check.ps1 -path .\ -hashfile sha256sum.txt
      .\log4shell_hash_check.ps1 -path c:\opt\tomcat\ -hashfile sha256sum.txt
Salida de ejemplo:
root@kitploit:~
OccamSec $ ./log4shell_hash_check.sh ./ log4j_2.x_sha256sum.txt
Please be patient, scanning the file system for .jar files starting at ./
.//apache-log4j-2.13.1-bin/log4j-flume-ng-2.13.1.jar
.//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar
[CUT]
.//apache-log4j-2.13.1-bin/log4j-mongodb2-2.13.1.jar
.//apache-log4j-2.13.1-bin/log4j-to-slf4j-2.13.1-sources.jar
.//apache-log4j-2.13.1-bin/log4j-to-slf4j-2.13.1-javadoc.jar
.//apache-log4j-2.13.1-bin/log4j-appserver-2.13.1-javadoc.jar
.//apache-log4j-2.13.1-bin/log4j-appserver-2.13.1-sources.jar

Checking hash 6f38a25482d82cd118c4255f25b9d78d96821d22bab498cdce9cda7a563ca992  .//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar
   >>> MATCH: 6f38a25482d82cd118c4255f25b9d78d96821d22bab498cdce9cda7a563ca992  .//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar

Checking hash eafab7995f042e0386e08fa5e299d63465b63f1e4e5cb754612c68d52b72516d  .//apache-log4j-2.13.1-bin/log4j-appserver-2.13.1-sources.jar

List of .jar files found under ./ (if any) saved as ./jarfiles.txt
List of .jar files matching user-provided Log4j hashes (if any) saved as ./matchinglog4j.txt

Buscador de JndiLookup de Log4Shell

Este script buscará archivos .jar en el sistema de archivos a partir de una ruta específica y los inspeccionará para comprobar si contienen la clase JndiLookup. Si este es el caso, el script extraerá información del manifiesto del archivo .jar que debería ayudar a determinar si el archivo .jar contiene una versión de Log4j, y si esta es vulnerable. Finalmente, el script calculará un hash SHA-256 para completar el análisis.

Corresponde al usuario decidir si este script se utilizará como complemento del script "Comprobación de Hash de Log4Shell" o como herramienta independiente.

Uso:

Bash (ejecutar con sudo para evitar problemas de permisos):

root@kitploit:~
log4shell_jndilookup_finder.sh <path>

E.g.: sudo ./log4shell_jndilookup_finder.sh /
      sudo ./log4shell_jndilookup_finder.sh ./
      sudo ./log4shell_jndilookup_finder.sh /opt/tomcat/

PowerShell (ejecutar desde un shell de administrador para evitar problemas de permisos):

root@kitploit:~
log4shell_jndilookup_finder.ps1 -path <path>

E.g.: .\log4shell_jndilookup_finder.ps1 -path c:\
      .\log4shell_jndilookup_finder.ps1 -path .\
      .\log4shell_jndilookup_finder.ps1 -path c:\opt\tomcat\
Salida de ejemplo:
root@kitploit:~
OccamSec $ ./log4shell_jndilookup_finder.sh ./
Please be patient, scanning the file system for .jar files starting at ./
.//apache-log4j-2.13.1-bin/log4j-flume-ng-2.13.1.jar
.//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar
[CUT]
.//apache-log4j-2.13.1-bin/log4j-mongodb2-2.13.1.jar
.//apache-log4j-2.13.1-bin/log4j-to-slf4j-2.13.1-sources.jar
.//apache-log4j-2.13.1-bin/log4j-to-slf4j-2.13.1-javadoc.jar
.//apache-log4j-2.13.1-bin/log4j-appserver-2.13.1-javadoc.jar
.//apache-log4j-2.13.1-bin/log4j-appserver-2.13.1-sources.jar
-------------------------------------------
>>> JndiLookup.class found in: .//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar

PACKAGE INFORMATION:
Automatic-Module-Name: org.apache.logging.log4j.core
Bundle-Name: Apache Log4j Core
Bundle-SymbolicName: org.apache.logging.log4j.core
Implementation-Title: Apache Log4j Core
Implementation-URL: https://logging.apache.org/log4j/2.x/log4j-core/
Implementation-Vendor-Id: org.apache.logging.log4j
Specification-Title: Apache Log4j Core

VERSION INFORMATION:
Bundle-Version: 2.13.1
Implementation-Version: 2.13.1
Log4jReleaseVersion: 2.13.1
Specification-Version: 2.13.1

SHA-256 hash:
 6f38a25482d82cd118c4255f25b9d78d96821d22bab498cdce9cda7a563ca992 *.//apache-log4j-2.13.1-bin/log4j-core-2.13.1.jar

List of .jar files found under ./ (if any) saved as ./jarfiles.txt
Details about .jar files containing 'JndiLookup.class' (if any) saved as ./jndilookup_jarfiles.txt
Descargar herramienta