AddTabExploitSql.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.interaction;
import com.jsql.view.interaction.InteractionCommand;
import com.jsql.view.swing.util.MediatorHelper;
import javax.swing.*;
/**
* Create a new tab for the terminal.
*/
public class AddTabExploitSql extends CreateTabHelper implements InteractionCommand {
// Url of the shell webpage on remote host
private final String url;
private final String user;
private final String pass;
/**
* @param interactionParams The local path and url for the shell
*/
public AddTabExploitSql(Object[] interactionParams) {
this.url = (String) interactionParams[0];
this.user = (String) interactionParams[1];
this.pass = (String) interactionParams[2];
}
@Override
public void execute() {
SwingUtilities.invokeLater(() -> MediatorHelper.tabResults().addTabExploitSql(this.url, this.user, this.pass));
}
}