Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
log4j-recognizer — A Java helper to identify log4j in the current classpath | Kitploit
Tools/GitHubGitHub/scitotec/log4j-recognizer
Defensive ToolsVulnerability AnalysisSupply Chain Security
GitHubscitotec/log4j-recognizer

log4j-recognizer

A Java helper to identify log4j in the current classpath

View Repository
24 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

log4j-recognizer

A utility to look for log4j in the currently running JVM (CVE-2021-44228 (Log4Shell)).

This is useful for systems that allow plugins to introduce their own jars. Therefore, you can find if someone brought log4j in a dangerous version.

Usage

Just instantiate Log4jRecognizer with your desired class loader and use its methods, e.g.:

root@kitploit:~
import com.github.scitotec.log4jrecognizer.Log4jRecognizer;

public class Main {
    public static void main(String[] args) {
        var rec = new Log4jRecognizer(Main.class.getClassLoader());
        System.out.println(rec.hasVersion1());
        System.out.println(rec.hasVersion2());
        System.out.println(rec.version());
    }
}

Installation

Declare log4j-recognizer as a dependency. This varies depending on your build tool.

Maven

root@kitploit:~
    <repositories>
        <repository>
            <id>jitpack.io</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.scitotec</groupId>
            <artifactId>log4j-recognizer</artifactId>
            <version>1.0.2</version>
        </dependency>
    </dependencies>

Gradle

root@kitploit:~
repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.scitotec:log4j-recognizer:1.0.2'
}
Download Tool