View Javadoc
1   /*******************************************************************************
2    * Copyhacked (H) 2012-2025.
3    * This program and the accompanying materials
4    * are made available under no term at all, use it like
5    * you want, but share and discuss it
6    * every time possible with every body.
7    * 
8    * Contributors:
9    *      ron190 at ymail dot com - initial implementation
10   ******************************************************************************/
11  package com.jsql.view.swing.interaction;
12  
13  import com.jsql.view.interaction.InteractionCommand;
14  import com.jsql.view.swing.util.MediatorHelper;
15  
16  import javax.swing.*;
17  import java.util.UUID;
18  
19  /**
20   * Create a new tab for the terminal.
21   */
22  public class AddTabExploitRceSqlite extends CreateTabHelper implements InteractionCommand {
23  
24      /**
25       * @param interactionParams The local path and url for the shell
26       */
27      public AddTabExploitRceSqlite(Object[] interactionParams) {
28          // nothing
29      }
30  
31      @Override
32      public void execute() {
33          SwingUtilities.invokeLater(() -> MediatorHelper.tabResults().addTabExploitRce(
34              (String command, UUID terminalID) -> MediatorHelper.model().getResourceAccess().getExploitSqlite().runRce(command, terminalID)
35          ));
36      }
37  }