1
2
3
4
5
6
7
8
9
10
11 package com.jsql.view.swing.terminal;
12
13 import com.jsql.view.swing.util.MediatorHelper;
14
15 import java.net.MalformedURLException;
16 import java.net.URISyntaxException;
17 import java.util.UUID;
18
19
20
21
22 public class ExploitRceProgramPostgres extends AbstractExploit {
23
24
25
26
27
28 public ExploitRceProgramPostgres(UUID terminalId) throws MalformedURLException, URISyntaxException {
29 super(terminalId, null, "rce");
30 this.setName("rceShell");
31 }
32
33 @Override
34 public void action(String command, UUID terminalId, String urlShell, String... arg) {
35 MediatorHelper.model().getResourceAccess().getExploitPostgres().runRceProgramCmd(command, terminalId);
36 }
37 }