ExploitRcePostgres.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 ExploitRcePostgres extends AbstractExploit {
/**
* Build a webshell instance.
* @param terminalId Unique identifier to discriminate beyond multiple opened terminals
*/
public ExploitRcePostgres(UUID terminalId) throws MalformedURLException, URISyntaxException {
super(terminalId, null, "rce");
this.setName("rceShell");
}
@Override
public void action(String command, UUID terminalId, String urlShell, String... arg) {
MediatorHelper.model().getResourceAccess().getExploitPostgres().runRceExtCmd(command, terminalId);
}
}