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 | ||
18 | /** | |
19 | * Create a new tab for the terminal. | |
20 | */ | |
21 | public class AddTabExploitSql extends CreateTabHelper implements InteractionCommand { | |
22 | | |
23 | // Url of the shell webpage on remote host | |
24 | private final String url; | |
25 | | |
26 | private final String user; | |
27 | private final String pass; | |
28 | ||
29 | /** | |
30 | * @param interactionParams The local path and url for the shell | |
31 | */ | |
32 | public AddTabExploitSql(Object[] interactionParams) { | |
33 | this.url = (String) interactionParams[0]; | |
34 | this.user = (String) interactionParams[1]; | |
35 | this.pass = (String) interactionParams[2]; | |
36 | } | |
37 | ||
38 | @Override | |
39 | public void execute() { | |
40 |
2
1. execute : removed call to javax/swing/SwingUtilities::invokeLater → NO_COVERAGE 2. lambda$execute$0 : removed call to com/jsql/view/swing/tab/TabResults::addTabExploitSql → NO_COVERAGE |
SwingUtilities.invokeLater(() -> MediatorHelper.tabResults().addTabExploitSql(this.url, this.user, this.pass)); |
41 | } | |
42 | } | |
Mutations | ||
40 |
1.1 2.2 |