Exploit database

GH-2e0207f95783ff35b3fdcb45b87a88cb

creeperhost/log4jpatcher

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2021-44228

465 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/main/java/net/creeperhost/log4jpatcher/Main.java

Suggested starting fileJava · 682 bytes
/*
 * This file is part of Log4jPatcher and is Licensed under the MIT License.
 *
 * Copyright (c) 2021 CreeperHost <https://github.com/CreeperHost>
 */
package net.creeperhost.log4jpatcher;

import java.lang.instrument.Instrumentation;

/**
 * Created by covers1624 on 10/12/21.
 */
public class Main {

    public static boolean DEBUG = false;

    public static void premain(String agentArgs, Instrumentation inst) {
        if (agentArgs != null) {
            if (agentArgs.contains("debug")) {
                DEBUG = true;
            }
        }
        inst.addTransformer(new MessagePatternTransformer());
        inst.addTransformer(new JndiLookupTransformer());
    }
}