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/org/apache/xmlrpc/XmlRpcException.java

Java · 1,572 bytes
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package org.apache.xmlrpc;

import java.io.PrintStream;
import java.io.PrintWriter;

public class XmlRpcException extends Exception {
    private static final long serialVersionUID = 3258693217049325618L;
    public final int code;
    public final Throwable linkedException;

    public XmlRpcException(int pCode, String pMessage) {
        this(pCode, pMessage, (Throwable)null);
    }

    public XmlRpcException(String pMessage, Throwable pLinkedException) {
        this(0, pMessage, pLinkedException);
    }

    public XmlRpcException(String pMessage) {
        this(0, pMessage, (Throwable)null);
    }

    public XmlRpcException(int pCode, String pMessage, Throwable pLinkedException) {
        super(pMessage);
        this.code = pCode;
//        this.linkedException = pLinkedException;
        this.linkedException = pLinkedException;
    }

    public void printStackTrace(PrintStream pStream) {
        super.printStackTrace(pStream);
        if (this.linkedException != null) {
            pStream.println("Caused by111111:");
            this.linkedException.printStackTrace(pStream);
        }

    }

    public void printStackTrace(PrintWriter pWriter) {
        super.printStackTrace(pWriter);
        if (this.linkedException != null) {
            pWriter.println("Caused by1111111:");
            this.linkedException.printStackTrace(pWriter);
        }

    }

    public Throwable getCause() {
        return this.linkedException;
    }
}