Version: 2.4.2 Update
This commit is contained in:
@@ -34,12 +34,12 @@ 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.1";
|
String version = "2.4.2";
|
||||||
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);
|
||||||
stdout.println("@Core Author: EvilChen");
|
stdout.println("@First Author: EvilChen");
|
||||||
stdout.println("@Architecture Author: 0chencc");
|
stdout.println("@Second Author: 0chencc");
|
||||||
stdout.println("@Github: https://github.com/gh0stkey/HaE");
|
stdout.println("@Github: https://github.com/gh0stkey/HaE");
|
||||||
// UI
|
// UI
|
||||||
SwingUtilities.invokeLater(this::initialize);
|
SwingUtilities.invokeLater(this::initialize);
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ public class JTabbedPaneCloseButton extends JTabbedPane {
|
|||||||
|
|
||||||
/** Button */
|
/** Button */
|
||||||
public class CloseButtonTab extends JPanel {
|
public class CloseButtonTab extends JPanel {
|
||||||
|
|
||||||
public CloseButtonTab(final Component tab, String title, Icon icon) {
|
public CloseButtonTab(final Component tab, String title, Icon icon) {
|
||||||
setOpaque(false);
|
setOpaque(false);
|
||||||
FlowLayout flowLayout = new FlowLayout(FlowLayout.CENTER, 3, 3);
|
FlowLayout flowLayout = new FlowLayout(FlowLayout.CENTER, 3, 3);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class MainUI extends JPanel{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onlineUpdateMouseClicked(MouseEvent e) {
|
private void onlineUpdateActionPerformed(ActionEvent e) {
|
||||||
String url = "https://raw.githubusercontent.com/gh0stkey/HaE/gh-pages/Config.yml";
|
String url = "https://raw.githubusercontent.com/gh0stkey/HaE/gh-pages/Config.yml";
|
||||||
OkHttpClient httpClient = new OkHttpClient();
|
OkHttpClient httpClient = new OkHttpClient();
|
||||||
Request httpRequest = new Request.Builder().url(url).get().build();
|
Request httpRequest = new Request.Builder().url(url).get().build();
|
||||||
@@ -62,6 +62,7 @@ public class MainUI extends JPanel{
|
|||||||
}
|
}
|
||||||
|
|
||||||
new LoadConfig();
|
new LoadConfig();
|
||||||
|
reloadRule();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reloadRule(){
|
private void reloadRule(){
|
||||||
@@ -78,11 +79,11 @@ public class MainUI extends JPanel{
|
|||||||
ruleSwitch.setListen(true);
|
ruleSwitch.setListen(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void reloadMouseClicked(MouseEvent e) {
|
private void reloadActionPerformed(ActionEvent e) {
|
||||||
reloadRule();
|
reloadRule();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void excludeSuffixSaveMouseClicked(MouseEvent e) {
|
private void excludeSuffixSaveActionPerformed(ActionEvent e) {
|
||||||
LoadConfig loadCon = new LoadConfig();
|
LoadConfig loadCon = new LoadConfig();
|
||||||
loadCon.setExcludeSuffix(excludeSuffixTextField.getText());
|
loadCon.setExcludeSuffix(excludeSuffixTextField.getText());
|
||||||
}
|
}
|
||||||
@@ -125,23 +126,13 @@ public class MainUI extends JPanel{
|
|||||||
new Insets(5, 5, 5, 5), 0, 0));
|
new Insets(5, 5, 5, 5), 0, 0));
|
||||||
|
|
||||||
onlineUpdateButton.setText("Online Update");
|
onlineUpdateButton.setText("Online Update");
|
||||||
onlineUpdateButton.addMouseListener(new MouseAdapter() {
|
onlineUpdateButton.addActionListener(this::onlineUpdateActionPerformed);
|
||||||
@Override
|
|
||||||
public void mouseClicked(MouseEvent e) {
|
|
||||||
onlineUpdateMouseClicked(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
rulePanel.add(onlineUpdateButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
|
rulePanel.add(onlineUpdateButton, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
|
||||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||||
new Insets(5, 0, 5, 5), 0, 0));
|
new Insets(5, 0, 5, 5), 0, 0));
|
||||||
|
|
||||||
reloadButton.setText("Reload");
|
reloadButton.setText("Reload");
|
||||||
reloadButton.addMouseListener(new MouseAdapter() {
|
reloadButton.addActionListener(this::reloadActionPerformed);
|
||||||
@Override
|
|
||||||
public void mouseClicked(MouseEvent e) {
|
|
||||||
reloadMouseClicked(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
rulePanel.add(reloadButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
|
rulePanel.add(reloadButton, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
|
||||||
|
|
||||||
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
GridBagConstraints.CENTER, GridBagConstraints.BOTH,
|
||||||
@@ -156,12 +147,7 @@ public class MainUI extends JPanel{
|
|||||||
new Insets(0, 0, 0, 5), 0, 0));
|
new Insets(0, 0, 0, 5), 0, 0));
|
||||||
|
|
||||||
excludeSuffixSaveButton.setText("Save");
|
excludeSuffixSaveButton.setText("Save");
|
||||||
excludeSuffixSaveButton.addMouseListener(new MouseAdapter() {
|
excludeSuffixSaveButton.addActionListener(this::excludeSuffixSaveActionPerformed);
|
||||||
@Override
|
|
||||||
public void mouseClicked(MouseEvent e) {
|
|
||||||
excludeSuffixSaveMouseClicked(e);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
rulePanel.add(excludeSuffixSaveButton, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0,
|
rulePanel.add(excludeSuffixSaveButton, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0,
|
||||||
GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
|
GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
|
||||||
new Insets(0, 0, 0, 5), 0, 0));
|
new Insets(0, 0, 0, 5), 0, 0));
|
||||||
@@ -183,7 +169,7 @@ public class MainUI extends JPanel{
|
|||||||
ruleSwitch = new TabTitleEditListener(ruleTabbedPane);
|
ruleSwitch = new TabTitleEditListener(ruleTabbedPane);
|
||||||
ruleTabbedPane.addChangeListener(ruleSwitch);
|
ruleTabbedPane.addChangeListener(ruleSwitch);
|
||||||
ruleTabbedPane.addMouseListener(ruleSwitch);
|
ruleTabbedPane.addMouseListener(ruleSwitch);
|
||||||
closeTabMenuItem.addActionListener(e -> closeTabActionPerformed(e));
|
closeTabMenuItem.addActionListener(this::closeTabActionPerformed);
|
||||||
tabMenu.add(closeTabMenuItem);
|
tabMenu.add(closeTabMenuItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,15 +2,14 @@ package burp.ui;
|
|||||||
|
|
||||||
import burp.yaml.SetConfig;
|
import burp.yaml.SetConfig;
|
||||||
|
|
||||||
import java.awt.event.ComponentListener;
|
import java.awt.event.ActionEvent;
|
||||||
|
import java.awt.event.ActionListener;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.event.TableModelEvent;
|
import javax.swing.event.TableModelEvent;
|
||||||
import javax.swing.event.TableModelListener;
|
import javax.swing.event.TableModelListener;
|
||||||
import javax.swing.table.DefaultTableModel;
|
import javax.swing.table.DefaultTableModel;
|
||||||
import javax.swing.table.TableRowSorter;
|
import javax.swing.table.TableRowSorter;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.MouseAdapter;
|
|
||||||
import java.awt.event.MouseEvent;
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,7 +23,7 @@ public class RulePane extends JPanel {
|
|||||||
private SetConfig setConfig = new SetConfig();
|
private SetConfig setConfig = new SetConfig();
|
||||||
private Boolean isEdit = false;
|
private Boolean isEdit = false;
|
||||||
|
|
||||||
private void ruleAddMouseClicked(MouseEvent e, JTabbedPane pane) {
|
private void ruleAddActionPerformed(ActionEvent e, JTabbedPane pane) {
|
||||||
RuleSetting ruleSettingPanel = new RuleSetting();
|
RuleSetting ruleSettingPanel = new RuleSetting();
|
||||||
int showState = JOptionPane.showConfirmDialog(null, ruleSettingPanel, "RuleSetting - Add Rule", JOptionPane.OK_OPTION);
|
int showState = JOptionPane.showConfirmDialog(null, ruleSettingPanel, "RuleSetting - Add Rule", JOptionPane.OK_OPTION);
|
||||||
if(showState == 0){
|
if(showState == 0){
|
||||||
@@ -42,7 +41,7 @@ public class RulePane extends JPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ruleEditMouseClicked(MouseEvent e, JTabbedPane pane){
|
private void ruleEditActionPerformed(ActionEvent e, JTabbedPane pane){
|
||||||
if (ruleTable.getSelectedRowCount() >= 1){
|
if (ruleTable.getSelectedRowCount() >= 1){
|
||||||
RuleSetting ruleSettingPanel = new RuleSetting();
|
RuleSetting ruleSettingPanel = new RuleSetting();
|
||||||
ruleSettingPanel.ruleNameTextField.setText(ruleTable.getValueAt(ruleTable.getSelectedRow(), 1).toString());
|
ruleSettingPanel.ruleNameTextField.setText(ruleTable.getValueAt(ruleTable.getSelectedRow(), 1).toString());
|
||||||
@@ -71,7 +70,7 @@ public class RulePane extends JPanel {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ruleRemoveMouseClicked(MouseEvent e, JTabbedPane pane){
|
private void ruleRemoveActionPerformed(ActionEvent e, JTabbedPane pane){
|
||||||
if (ruleTable.getSelectedRowCount() >= 1){
|
if (ruleTable.getSelectedRowCount() >= 1){
|
||||||
int isOk = JOptionPane.showConfirmDialog(null, "Are your sure?", "RuleSetting - Delete Rule", JOptionPane.OK_OPTION);
|
int isOk = JOptionPane.showConfirmDialog(null, "Are your sure?", "RuleSetting - Delete Rule", JOptionPane.OK_OPTION);
|
||||||
if (isOk == 0){
|
if (isOk == 0){
|
||||||
@@ -109,11 +108,11 @@ public class RulePane extends JPanel {
|
|||||||
//---- addButton ----
|
//---- addButton ----
|
||||||
addButton.setText("Add");
|
addButton.setText("Add");
|
||||||
|
|
||||||
addButton.addMouseListener(new MouseAdapter() {
|
addButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
isEdit = true;
|
isEdit = true;
|
||||||
ruleAddMouseClicked(e, pane);
|
ruleAddActionPerformed(e, pane);
|
||||||
model = (DefaultTableModel) ruleTable.getModel();
|
model = (DefaultTableModel) ruleTable.getModel();
|
||||||
isEdit = false;
|
isEdit = false;
|
||||||
}
|
}
|
||||||
@@ -125,11 +124,11 @@ public class RulePane extends JPanel {
|
|||||||
|
|
||||||
//---- editButton ----
|
//---- editButton ----
|
||||||
editButton.setText("Edit");
|
editButton.setText("Edit");
|
||||||
editButton.addMouseListener(new MouseAdapter() {
|
editButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
isEdit = true;
|
isEdit = true;
|
||||||
ruleEditMouseClicked(e, pane);
|
ruleEditActionPerformed(e, pane);
|
||||||
model = (DefaultTableModel) ruleTable.getModel();
|
model = (DefaultTableModel) ruleTable.getModel();
|
||||||
isEdit = false;
|
isEdit = false;
|
||||||
}
|
}
|
||||||
@@ -158,11 +157,11 @@ public class RulePane extends JPanel {
|
|||||||
//---- removeButton ----
|
//---- removeButton ----
|
||||||
removeButton.setText("Remove");
|
removeButton.setText("Remove");
|
||||||
|
|
||||||
removeButton.addMouseListener(new MouseAdapter() {
|
removeButton.addActionListener(new ActionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
isEdit = true;
|
isEdit = true;
|
||||||
ruleRemoveMouseClicked(e, pane);
|
ruleRemoveActionPerformed(e, pane);
|
||||||
model = (DefaultTableModel) ruleTable.getModel();
|
model = (DefaultTableModel) ruleTable.getModel();
|
||||||
isEdit = false;
|
isEdit = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user