ExploitUdfMysql.java
/*******************************************************************************
* Copyhacked (H) 2012-2025.
* This program and the accompanying materials
* are made available under no term at all, use it like
* you want, but share and discuss it
* every time possible with every body.
*
* Contributors:
* ron190 at ymail dot com - initial implementation
******************************************************************************/
package com.jsql.view.swing.terminal;
import com.jsql.view.swing.util.MediatorHelper;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.UUID;
/**
* A terminal for web shell injection.
*/
public class ExploitUdfMysql extends AbstractExploit {
/**
* Build a webshell instance.
* @param terminalID Unique identifier to discriminate beyond multiple opened terminals
*/
public ExploitUdfMysql(UUID terminalID) throws MalformedURLException, URISyntaxException {
super(terminalID, null, "udf");
this.setName("udfShell");
}
@Override
public void action(String command, UUID terminalID, String urlShell, String... arg) {
MediatorHelper.model().getResourceAccess().getExploitMysql().runUdfCmd(command, terminalID);
}
}