Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f872dadf46 | ||
|
|
15bbb9f1a0 | ||
|
|
89f3f6cf09 | ||
|
|
cf9f434ff8 | ||
|
|
37a907d6df | ||
|
|
83e5da2f7e |
@@ -33,7 +33,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.0.1";
|
String version = "2.0.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);
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class ExtractContent {
|
|||||||
String scope = objects[4].toString();
|
String scope = objects[4].toString();
|
||||||
String engine = objects[5].toString();
|
String engine = objects[5].toString();
|
||||||
// 判断规则是否开启与作用域
|
// 判断规则是否开启与作用域
|
||||||
if (loaded && (scopeString.contains(scope) || scope.equals("any"))) {
|
if (loaded && (scope.contains(scopeString) || scope.equals("any"))) {
|
||||||
switch (scope) {
|
switch (scope) {
|
||||||
case "any":
|
case "any":
|
||||||
case "request":
|
case "request":
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ public class RuleSetting extends JPanel {
|
|||||||
Name = new JTextField();
|
Name = new JTextField();
|
||||||
ScopeSelect = new JComboBox<>();
|
ScopeSelect = new JComboBox<>();
|
||||||
EngineSelect = new JComboBox<>();
|
EngineSelect = new JComboBox<>();
|
||||||
label7 = new JLabel();
|
label6 = new JLabel();
|
||||||
ColorSelect = new JComboBox<>();
|
ColorSelect = new JComboBox<>();
|
||||||
|
|
||||||
//======== this ========
|
//======== this ========
|
||||||
@@ -32,24 +32,24 @@ public class RuleSetting extends JPanel {
|
|||||||
//---- label5 ----
|
//---- label5 ----
|
||||||
label5.setText("Engine:");
|
label5.setText("Engine:");
|
||||||
add(label5);
|
add(label5);
|
||||||
label5.setBounds(10, 175, 50, 17);
|
label5.setBounds(new Rectangle(new Point(10, 175), label5.getPreferredSize()));
|
||||||
|
|
||||||
//---- label4 ----
|
//---- label4 ----
|
||||||
label4.setText("Scope:");
|
label4.setText("Scope:");
|
||||||
add(label4);
|
add(label4);
|
||||||
label4.setBounds(10, 135, 50, 17);
|
label4.setBounds(new Rectangle(new Point(10, 135), label4.getPreferredSize()));
|
||||||
add(Regex);
|
add(Regex);
|
||||||
Regex.setBounds(70, 50, 265, 30);
|
Regex.setBounds(70, 50, 265, 30);
|
||||||
|
|
||||||
//---- label3 ----
|
//---- label3 ----
|
||||||
label3.setText("Regex:");
|
label3.setText("Regex:");
|
||||||
add(label3);
|
add(label3);
|
||||||
label3.setBounds(10, 55, 50, 17);
|
label3.setBounds(new Rectangle(new Point(10, 55), label3.getPreferredSize()));
|
||||||
|
|
||||||
//---- label2 ----
|
//---- label2 ----
|
||||||
label2.setText("Name:");
|
label2.setText("Name:");
|
||||||
add(label2);
|
add(label2);
|
||||||
label2.setBounds(10, 15, 50, 17);
|
label2.setBounds(new Rectangle(new Point(10, 15), label2.getPreferredSize()));
|
||||||
add(Name);
|
add(Name);
|
||||||
Name.setBounds(70, 10, 265, 30);
|
Name.setBounds(70, 10, 265, 30);
|
||||||
|
|
||||||
@@ -64,9 +64,9 @@ public class RuleSetting extends JPanel {
|
|||||||
EngineSelect.setBounds(70, 170, 265, EngineSelect.getPreferredSize().height);
|
EngineSelect.setBounds(70, 170, 265, EngineSelect.getPreferredSize().height);
|
||||||
|
|
||||||
//---- label7 ----
|
//---- label7 ----
|
||||||
label7.setText("Color:");
|
label6.setText("Color:");
|
||||||
add(label7);
|
add(label6);
|
||||||
label7.setBounds(new Rectangle(new Point(10, 95), label7.getPreferredSize()));
|
label6.setBounds(new Rectangle(new Point(10, 95), label6.getPreferredSize()));
|
||||||
|
|
||||||
//---- ColorSelect ----
|
//---- ColorSelect ----
|
||||||
ColorSelect.setModel(new DefaultComboBoxModel<>(Config.colorArray));
|
ColorSelect.setModel(new DefaultComboBoxModel<>(Config.colorArray));
|
||||||
@@ -99,7 +99,7 @@ public class RuleSetting extends JPanel {
|
|||||||
public JTextField Name;
|
public JTextField Name;
|
||||||
public JComboBox<String> ScopeSelect;
|
public JComboBox<String> ScopeSelect;
|
||||||
public JComboBox<String> EngineSelect;
|
public JComboBox<String> EngineSelect;
|
||||||
private JLabel label7;
|
private JLabel label6;
|
||||||
public JComboBox<String> ColorSelect;
|
public JComboBox<String> ColorSelect;
|
||||||
// JFormDesigner - End of variables declaration //GEN-END:variables
|
// JFormDesigner - End of variables declaration //GEN-END:variables
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ import java.util.Map;
|
|||||||
public class LoadRule {
|
public class LoadRule {
|
||||||
private static String filePath = "Config.yml";
|
private static String filePath = "Config.yml";
|
||||||
public LoadRule(String configfile){
|
public LoadRule(String configfile){
|
||||||
init();
|
|
||||||
filePath = configfile;
|
filePath = configfile;
|
||||||
|
init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化配置
|
// 初始化配置
|
||||||
|
|||||||
Reference in New Issue
Block a user