Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b784aa1425 | ||
|
|
440b3b1504 | ||
|
|
a8f1798c7b |
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
除了初始化的配置文件外,还有`Setting.yml`,该文件用于存储配置文件路径与排除后缀名;`HaE`支持自定义配置文件路径,你可以通过点击`Select File`按钮进行选择自定义配置文件。
|
除了初始化的配置文件外,还有`Setting.yml`,该文件用于存储配置文件路径与排除后缀名;`HaE`支持在线更新配置文件,你可以通过点击`Online Update`按钮进行更新(部分网络需要挂代理)。
|
||||||
|
|
||||||
## 优势特点
|
## 优势特点
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package burp;
|
|||||||
import burp.action.*;
|
import burp.action.*;
|
||||||
import burp.ui.MainUI;
|
import burp.ui.MainUI;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Objects;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
@@ -34,7 +34,7 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
|
|||||||
this.callbacks = callbacks;
|
this.callbacks = callbacks;
|
||||||
BurpExtender.helpers = callbacks.getHelpers();
|
BurpExtender.helpers = callbacks.getHelpers();
|
||||||
|
|
||||||
String version = "2.4.2";
|
String version = "2.4.4";
|
||||||
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
||||||
// 定义输出
|
// 定义输出
|
||||||
stdout = new PrintWriter(callbacks.getStdout(), true);
|
stdout = new PrintWriter(callbacks.getStdout(), true);
|
||||||
@@ -102,8 +102,10 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
|
|||||||
String color = uc.getEndColor(gck.getColorKeys(colorList));
|
String color = uc.getEndColor(gck.getColorKeys(colorList));
|
||||||
|
|
||||||
messageInfo.setHighlight(color);
|
messageInfo.setHighlight(color);
|
||||||
|
|
||||||
String addComment = String.join(", ", result.get(1).get("comment"));
|
String addComment = String.join(", ", result.get(1).get("comment"));
|
||||||
String resComment = originalComment != null ? String.format("%s, %s", originalComment, addComment) : addComment;
|
stdout.println(addComment);
|
||||||
|
String resComment = !Objects.equals(originalComment, "") ? String.format("%s, %s", originalComment, addComment) : addComment;
|
||||||
|
|
||||||
messageInfo.setComment(resComment);
|
messageInfo.setComment(resComment);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,10 +143,15 @@ public class Databoard extends JPanel {
|
|||||||
if (!input.isEmpty()){
|
if (!input.isEmpty()){
|
||||||
for (String host : getHostByList()) {
|
for (String host : getHostByList()) {
|
||||||
if (host.toLowerCase().contains(input.toLowerCase())) {
|
if (host.toLowerCase().contains(input.toLowerCase())) {
|
||||||
|
if (host.length() == input.length()){
|
||||||
|
comboBoxModel.insertElementAt(host,0);
|
||||||
|
comboBoxModel.setSelectedItem(host);
|
||||||
|
}else{
|
||||||
comboBoxModel.addElement(host);
|
comboBoxModel.addElement(host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
hostComboBox.setPopupVisible(comboBoxModel.getSize() > 0);
|
hostComboBox.setPopupVisible(comboBoxModel.getSize() > 0);
|
||||||
isMatchHost = false;
|
isMatchHost = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user