Exploit databaseDownload repository ZIP
GH-470892aa646a5e805a0dc259f07a0168
labout/log4shell-rmi-poc
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
labout/log4shell-rmi-pocRevision af5c1c434ace
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vulnerabel_log4j_app/src/main/java/com/log4j/vulnerabel/app/Log4jController.java
Java · 633 bytespackage com.log4j.vulnerabel.app;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Log4jController {
public static final Logger logger = LogManager.getLogger(Log4jController.class);
@GetMapping(value = "/hello")
public String hello(@RequestHeader("Accept-version") String version) {
logger.info("Received version " + version);
return "Hello";
}
}