This repository was archived by the owner on Dec 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
src/main/java/com/chaitin/xray/form Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ Others:
118118
119119## 0.8
120120
121+ 重要功能更新:可以与` rad ` 联动;可以为独立反连平台导出配置文件
122+
123+ 重要` bug ` 说明:
124+
121125之前版本有反馈说CPU消耗过高,是因为之前没有停止的逻辑,意味着每运行一次新任务开两个新线程,一个执行一个监视。
122126当执行线程结束,监视线程不会停止,任务过多时导致CPU消耗极高。虽然之前版本可以通过点击强制停止使所有监视线程停下,解决问题。
123127但这种情况需要得到一个合理的解决,这个版本中,主动扫描也有停止扫描的按钮。
@@ -130,6 +134,7 @@ Bugs:
130134- [ bug] 查看所有poc界面使用新字体后可能有意外行为 #70
131135
132136Others:
137+ - [ new feature] 添加rad爬虫联动 #22
133138- 为反连平台添加导出配置文件的功能 #59
134139- 控制台使用更好看的字体 #67
135140- 加入跳转在线生成poc的按钮 #66
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public class MainForm {
4747 private static final List <String > existOutputList = new ArrayList <>();
4848 private static DB db ;
4949
50+ public RadForm radInstance ;
5051 private JButton choseDirButton ;
5152 private JPanel SuperXray ;
5253 private JPanel pathButtonPanel ;
@@ -1583,6 +1584,9 @@ public void refreshLang() {
15831584 private void initExit () {
15841585 Runtime .getRuntime ().addShutdownHook (new Thread (() -> {
15851586 instance .stop = true ;
1587+ if (radInstance != null ) {
1588+ radInstance .stop = true ;
1589+ }
15861590 try {
15871591 Thread .sleep (3000 );
15881592 } catch (Exception ignored ) {
@@ -1607,7 +1611,8 @@ private void initFont() {
16071611 private void initGetRad () {
16081612 radButton .addActionListener (e -> {
16091613 JFrame frame = new JFrame ("Rad Command" );
1610- frame .setContentPane (new RadForm (portText .getText ()).radPanel );
1614+ radInstance = new RadForm (portText .getText ());
1615+ frame .setContentPane (radInstance .radPanel );
16111616 frame .setResizable (false );
16121617 frame .pack ();
16131618 frame .setVisible (true );
Original file line number Diff line number Diff line change @@ -34,8 +34,7 @@ public class RadForm {
3434 private JLabel startLabel ;
3535
3636 private static RadCmd radCmd ;
37-
38- private volatile boolean stop = false ;
37+ public volatile boolean stop = false ;
3938
4039 private void execAndFresh (String [] finalCmd ) {
4140 outputTextArea .setText (null );
You can’t perform that action at this time.
0 commit comments