Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Nov 28, 2022
1 parent 8bcde66 commit d7b2122
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ Others:

## 0.8

重要功能更新:可以与`rad`联动;可以为独立反连平台导出配置文件

重要`bug`说明:

之前版本有反馈说CPU消耗过高,是因为之前没有停止的逻辑,意味着每运行一次新任务开两个新线程,一个执行一个监视。
当执行线程结束,监视线程不会停止,任务过多时导致CPU消耗极高。虽然之前版本可以通过点击强制停止使所有监视线程停下,解决问题。
但这种情况需要得到一个合理的解决,这个版本中,主动扫描也有停止扫描的按钮。
Expand All @@ -130,6 +134,7 @@ Bugs:
- [bug] 查看所有poc界面使用新字体后可能有意外行为 #70

Others:
- [new feature] 添加rad爬虫联动 #22
- 为反连平台添加导出配置文件的功能 #59
- 控制台使用更好看的字体 #67
- 加入跳转在线生成poc的按钮 #66
7 changes: 6 additions & 1 deletion src/main/java/com/chaitin/xray/form/MainForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class MainForm {
private static final List<String> existOutputList = new ArrayList<>();
private static DB db;

public RadForm radInstance;
private JButton choseDirButton;
private JPanel SuperXray;
private JPanel pathButtonPanel;
Expand Down Expand Up @@ -1583,6 +1584,9 @@ public void refreshLang() {
private void initExit() {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
instance.stop = true;
if (radInstance != null) {
radInstance.stop = true;
}
try {
Thread.sleep(3000);
} catch (Exception ignored) {
Expand All @@ -1607,7 +1611,8 @@ private void initFont() {
private void initGetRad() {
radButton.addActionListener(e -> {
JFrame frame = new JFrame("Rad Command");
frame.setContentPane(new RadForm(portText.getText()).radPanel);
radInstance = new RadForm(portText.getText());
frame.setContentPane(radInstance.radPanel);
frame.setResizable(false);
frame.pack();
frame.setVisible(true);
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/chaitin/xray/form/RadForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public class RadForm {
private JLabel startLabel;

private static RadCmd radCmd;

private volatile boolean stop = false;
public volatile boolean stop = false;

private void execAndFresh(String[] finalCmd) {
outputTextArea.setText(null);
Expand Down

0 comments on commit d7b2122

Please sign in to comment.