Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 2193df2

Browse files
committed
ui
1 parent c971699 commit 2193df2

4 files changed

Lines changed: 233 additions & 18 deletions

File tree

pom.xml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
<properties>
14-
<maven.compiler.source>6</maven.compiler.source>
15-
<maven.compiler.target>6</maven.compiler.target>
14+
<maven.compiler.source>8</maven.compiler.source>
15+
<maven.compiler.target>8</maven.compiler.target>
1616
</properties>
1717

1818
<build>
@@ -36,7 +36,7 @@
3636
<appendAssemblyId>false</appendAssemblyId>
3737
<archive>
3838
<manifest>
39-
<mainClass>com.summersec.attack.UI.Main</mainClass>
39+
<mainClass>com.drops.main.Main</mainClass>
4040
</manifest>
4141
</archive>
4242
<descriptor>assembly.xml</descriptor>
@@ -54,8 +54,15 @@
5454
</plugins>
5555
<resources>
5656
<resource>
57+
<!-- <directory>src/main/java/com/drops/main</directory>-->
5758
<directory>src/main/resources</directory>
59+
<!-- <includes>-->
60+
<!-- <include>**/*.properties</include>-->
61+
<!-- <include>**/*.fxml</include>-->
62+
<!-- <include>/*.fxml</include>-->
63+
<!-- </includes>-->
5864
</resource>
65+
5966
</resources>
6067

6168
</build>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import javafx.scene.Scene;
77
import javafx.stage.Stage;
88

9-
public class main extends Application {
9+
public class Main extends Application {
1010

1111
public static void main(String[] args) {
1212
launch(args);
@@ -21,5 +21,5 @@ public void start(Stage primaryStage) throws Exception {
2121
primaryStage.show();
2222

2323
}
24-
public main(){}
24+
public Main(){}
2525
}

src/main/java/com/drops/ui/MainController.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import com.drops.entity.ControllersFactory;
44
import javafx.collections.FXCollections;
5+
import javafx.event.ActionEvent;
56
import javafx.fxml.FXML;
67
import javafx.geometry.Insets;
78
import javafx.geometry.Pos;
@@ -160,6 +161,18 @@ public PasswordAuthentication getPasswordAuthentication() {
160161
}
161162

162163

164+
public void crackSpcGadgetBtn(ActionEvent actionEvent) {
165+
}
166+
167+
public void crackGadgetBtn(ActionEvent actionEvent) {
168+
}
163169

170+
public void connect(ActionEvent actionEvent) {
171+
}
164172

173+
public void executeCmdBtn(ActionEvent actionEvent) {
174+
}
175+
176+
public void injectShellBtn(ActionEvent actionEvent) {
177+
}
165178
}

src/main/resources/gui.fxml

Lines changed: 208 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<?import com.jfoenix.controls.*?>
4-
<?import com.jfoenix.controls.pannable.*?>
53
<?import javafx.geometry.*?>
64
<?import javafx.scene.control.*?>
75
<?import javafx.scene.layout.*?>
@@ -18,41 +16,238 @@
1816
</Menu>
1917
</menus>
2018
</MenuBar>
21-
<TitledPane animated="false" prefHeight="81.0" prefWidth="800.0" text="目标检测">
19+
<TitledPane animated="false" prefHeight="78.0" prefWidth="800.0" text="目标检测">
2220
<content>
2321
<HBox prefHeight="0.0" prefWidth="798.0" spacing="4.0">
2422
<children>
25-
<Label text="目标地址">
23+
<Label prefHeight="19.0" prefWidth="74.0" text="目标地址">
2624
<HBox.margin>
2725
<Insets top="4.0" />
2826
</HBox.margin>
2927
<font>
3028
<Font size="14.0" />
3129
</font>
3230
</Label>
33-
<TextField fx:id="targetAddress" prefHeight="27.0" prefWidth="267.0" />
34-
<Label layoutX="20.0" layoutY="23.0" prefHeight="19.0" prefWidth="75.0" text="超时设置/s">
31+
<TextField fx:id="targetAddress" prefHeight="27.0" prefWidth="456.0" />
32+
<Button mnemonicParsing="false" prefHeight="20.0" prefWidth="73.0" text="选择文件" />
33+
<Label layoutX="20.0" layoutY="23.0" prefHeight="17.0" prefWidth="70.0" text="超时设置/s">
3534
<HBox.margin>
3635
<Insets top="4.0" />
3736
</HBox.margin>
3837
<font>
3938
<Font size="14.0" />
4039
</font>
4140
</Label>
42-
<TextField fx:id="httpTimeout" layoutX="80.0" layoutY="20.0" prefHeight="26.0" prefWidth="55.0" />
43-
41+
<TextField fx:id="httpTimeout" layoutX="80.0" layoutY="20.0" prefHeight="23.0" prefWidth="100.0" />
42+
43+
</children>
44+
</HBox>
4445

46+
</content>
47+
</TitledPane>
48+
<TitledPane animated="false" prefHeight="78.0" prefWidth="800.0" text="服务器配置">
49+
<content>
50+
<HBox prefHeight="0.0" prefWidth="798.0" spacing="4.0">
51+
<children>
52+
<Label text="服务器地址" >
53+
<HBox.margin>
54+
<Insets top="4.0" />
55+
</HBox.margin>
56+
<font>
57+
<Font size="14.0" />
58+
</font>
59+
</Label>
60+
<TextField fx:id="vps" prefHeight="27.0" prefWidth="448.0" />
61+
<Button mnemonicParsing="false" prefHeight="23.0" prefWidth="84.0" text="连接" fx:id="connect" onAction="#connect" />
4562

4663
</children>
4764
</HBox>
4865

66+
67+
</content>
68+
</TitledPane>
69+
<TitledPane animated="false" prefHeight="113.0" prefWidth="800.0" text="利用方式">
70+
<content>
71+
<HBox prefHeight="35.0" prefWidth="798.0" spacing="8.0">
72+
<children>
73+
<Label prefHeight="19.0" prefWidth="70.0" text="利用链">
74+
<HBox.margin>
75+
<Insets top="3.0" />
76+
</HBox.margin>
77+
<font>
78+
<Font size="14.0" />
79+
</font>
80+
</Label>
81+
<ComboBox fx:id="gadgetOpt" prefHeight="26.0" prefWidth="226.0" />
82+
<Label layoutX="20.0" layoutY="20.0" prefHeight="19.0" prefWidth="99.0" text="回显方式">
83+
<HBox.margin>
84+
<Insets top="3.0" />
85+
</HBox.margin>
86+
<font>
87+
<Font size="14.0" />
88+
</font>
89+
</Label>
90+
<ComboBox fx:id="echoOpt" layoutX="59.0" layoutY="20.0" prefHeight="26.0" prefWidth="192.0" />
91+
<Button fx:id="crackSpcGadgetBtn" mnemonicParsing="false" onAction="#crackSpcGadgetBtn" prefHeight="32.0" prefWidth="153.0" text="检测当前利用链">
92+
<font>
93+
<Font size="14.0" />
94+
</font></Button>
95+
<Button fx:id="crackGadgetBtn" mnemonicParsing="false" onAction="#crackGadgetBtn" prefHeight="30.0" prefWidth="167.0" text="爆破利用链及回显">
96+
<font>
97+
<Font size="14.0" />
98+
</font>
99+
</Button>
100+
</children>
101+
102+
</HBox>
103+
104+
105+
49106
</content>
50107
</TitledPane>
51-
<JFXDialogLayout prefHeight="200.0" prefWidth="100.0" />
52-
<JFXDrawersStack prefHeight="200.0" prefWidth="200.0" />
53-
<JFXHamburger prefHeight="200.0" prefWidth="100.0" />
54-
<JFXBadge prefHeight="150.0" prefWidth="200.0" />
55-
<PannableScrollPane prefHeight="346.0" prefWidth="800.0" />
108+
<TabPane prefHeight="422.0" prefWidth="800.0" tabClosingPolicy="UNAVAILABLE">
109+
<tabs>
110+
<Tab text="检测日志">
111+
<content>
112+
<VBox>
113+
<children>
114+
<HBox prefHeight="513.0" prefWidth="990.0" spacing="10.0">
115+
<children>
116+
<TextArea fx:id="logTextArea" prefHeight="430.0" prefWidth="990.0">
117+
<font>
118+
<Font size="16.0" />
119+
</font>
120+
<HBox.margin>
121+
<Insets left="10.0" right="10.0" />
122+
</HBox.margin></TextArea>
123+
</children>
124+
<padding>
125+
<Insets top="10.0" />
126+
</padding>
127+
</HBox>
128+
</children></VBox>
129+
</content>
130+
</Tab>
131+
<Tab text="命令执行">
132+
<content>
133+
<VBox>
134+
<children>
135+
<HBox prefHeight="44.0" prefWidth="1000.0" spacing="10.0">
136+
<children>
137+
<Label prefHeight="19.0" prefWidth="69.0" text="输入命令">
138+
<HBox.margin>
139+
<Insets left="10.0" right="10.0" top="2.0" />
140+
</HBox.margin>
141+
<font>
142+
<Font size="14.0" />
143+
</font>
144+
</Label>
145+
<TextField fx:id="exCommandText" prefHeight="25.0" prefWidth="763.0">
146+
<opaqueInsets>
147+
<Insets />
148+
</opaqueInsets>
149+
<HBox.margin>
150+
<Insets left="10.0" right="10.0" />
151+
</HBox.margin>
152+
<font>
153+
<Font size="14.0" />
154+
</font>
155+
</TextField>
156+
<Button fx:id="executeCmdBtn" mnemonicParsing="false" onAction="#executeCmdBtn" prefHeight="25.0" prefWidth="92.0" text="执行">
157+
<HBox.margin>
158+
<Insets left="10.0" right="10.0" />
159+
</HBox.margin>
160+
<font>
161+
<Font size="14.0" />
162+
</font></Button>
163+
</children>
164+
<padding>
165+
<Insets bottom="5.0" top="5.0" />
166+
</padding>
167+
<VBox.margin>
168+
<Insets top="10.0" />
169+
</VBox.margin>
170+
</HBox>
171+
<TextArea fx:id="execOutputArea" prefHeight="454.0" prefWidth="970.0">
172+
<VBox.margin>
173+
<Insets left="10.0" right="10.0" top="10.0" />
174+
</VBox.margin>
175+
<font>
176+
<Font size="16.0" />
177+
</font></TextArea>
178+
</children>
179+
</VBox>
180+
</content>
181+
</Tab>
182+
<Tab text="内存马">
183+
<content>
184+
<VBox prefHeight="461.0" prefWidth="990.0">
185+
<children>
186+
<HBox prefHeight="37.0" prefWidth="990.0" spacing="10.0">
187+
<children>
188+
<Label text="内存马类型">
189+
<HBox.margin>
190+
<Insets left="10.0" top="3.0" />
191+
</HBox.margin>
192+
<font>
193+
<Font name="System Font" size="14.0" />
194+
</font>
195+
</Label>
196+
<ComboBox fx:id="memShellOpt" prefHeight="25.0" prefWidth="164.0">
197+
<HBox.margin>
198+
<Insets left="10.0" right="10.0" />
199+
</HBox.margin></ComboBox>
200+
<Label text="路径">
201+
<HBox.margin>
202+
<Insets left="10.0" top="3.0" />
203+
</HBox.margin>
204+
<font>
205+
<Font size="14.0" />
206+
</font>
207+
</Label>
208+
<TextField fx:id="shellPathText" prefHeight="25.0" prefWidth="316.0">
209+
<HBox.margin>
210+
<Insets left="10.0" right="10.0" />
211+
</HBox.margin>
212+
</TextField>
213+
<Label text="密码">
214+
<HBox.margin>
215+
<Insets top="3.0" />
216+
</HBox.margin>
217+
<font>
218+
<Font size="14.0" />
219+
</font>
220+
</Label>
221+
<TextField fx:id="shellPassText" prefHeight="25.0" prefWidth="94.0">
222+
<HBox.margin>
223+
<Insets left="10.0" right="10.0" />
224+
</HBox.margin></TextField>
225+
<Button fx:id="injectShellBtn" mnemonicParsing="false" onAction="#injectShellBtn" prefHeight="25.0" prefWidth="128.0" text="执行注入">
226+
<font>
227+
<Font size="14.0" />
228+
</font></Button>
229+
</children>
230+
<VBox.margin>
231+
<Insets top="10.0" />
232+
</VBox.margin>
233+
<padding>
234+
<Insets top="5.0" />
235+
</padding>
236+
</HBox>
237+
<TextArea fx:id="InjOutputArea" prefHeight="433.0" prefWidth="990.0">
238+
<VBox.margin>
239+
<Insets left="10.0" right="10.0" top="10.0" />
240+
</VBox.margin>
241+
<font>
242+
<Font size="16.0" />
243+
</font>
244+
</TextArea>
245+
</children></VBox>
246+
</content>
247+
</Tab>
248+
</tabs>
249+
</TabPane>
250+
<HBox prefHeight="0.0" prefWidth="800.0" />
56251

57252
</children>
58253

0 commit comments

Comments
 (0)