Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0225c00f69 | ||
|
|
eafae602b8 |
@@ -38,7 +38,7 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
|
|||||||
|
|
||||||
new ConfigLoader();
|
new ConfigLoader();
|
||||||
|
|
||||||
String version = "2.5.4";
|
String version = "2.5.5";
|
||||||
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
|
||||||
|
|
||||||
// 定义输出
|
// 定义输出
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import javax.swing.JOptionPane;
|
|||||||
*/
|
*/
|
||||||
public class RuleTool {
|
public class RuleTool {
|
||||||
private String rulesFilePath;
|
private String rulesFilePath;
|
||||||
|
private boolean isSuccess;
|
||||||
|
|
||||||
public RuleTool(String rulesFilePath) {
|
public RuleTool(String rulesFilePath) {
|
||||||
this.rulesFilePath = rulesFilePath;
|
this.rulesFilePath = rulesFilePath;
|
||||||
@@ -32,18 +33,22 @@ public class RuleTool {
|
|||||||
FileOutputStream fileOutputStream = new FileOutputStream(this.rulesFilePath);
|
FileOutputStream fileOutputStream = new FileOutputStream(this.rulesFilePath);
|
||||||
fileOutputStream.write(responseBodyByte);
|
fileOutputStream.write(responseBodyByte);
|
||||||
fileOutputStream.close();
|
fileOutputStream.close();
|
||||||
JOptionPane.showMessageDialog(null, "Rules update successfully!", "Info",
|
isSuccess = true;
|
||||||
JOptionPane.INFORMATION_MESSAGE);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
JOptionPane.showMessageDialog(null, e, "Error",
|
isSuccess = false;
|
||||||
JOptionPane.ERROR_MESSAGE);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
t.start();
|
t.start();
|
||||||
try {
|
try {
|
||||||
t.join();
|
t.join(10000);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
isSuccess = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isSuccess) {
|
||||||
|
JOptionPane.showMessageDialog(null, "Rules update successfully!", "Info", JOptionPane.INFORMATION_MESSAGE);
|
||||||
|
} else {
|
||||||
|
JOptionPane.showMessageDialog(null, "Rule update failed, please check the network!", "Error", JOptionPane.ERROR_MESSAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ public class MainUI extends JPanel {
|
|||||||
private void excludeSuffixSaveActionPerformed(ActionEvent e) {
|
private void excludeSuffixSaveActionPerformed(ActionEvent e) {
|
||||||
ConfigLoader.setExcludeSuffix(excludeSuffixTextField.getText());
|
ConfigLoader.setExcludeSuffix(excludeSuffixTextField.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initComponents() {
|
private void initComponents() {
|
||||||
JTabbedPane mainTabbedPane = new JTabbedPane();
|
JTabbedPane mainTabbedPane = new JTabbedPane();
|
||||||
ruleTabbedPane = new JTabbedPane();
|
ruleTabbedPane = new JTabbedPane();
|
||||||
|
|||||||
@@ -417,7 +417,7 @@ public class Databoard extends JPanel {
|
|||||||
sorter = new TableRowSorter<>(model);
|
sorter = new TableRowSorter<>(model);
|
||||||
table.setRowSorter(sorter);
|
table.setRowSorter(sorter);
|
||||||
}
|
}
|
||||||
RowFilter<DefaultTableModel, Object> rowFilter = RowFilter.regexFilter(searchText, 0);
|
RowFilter<DefaultTableModel, Object> rowFilter = RowFilter.regexFilter(String.format("%s%s", "(?i)", searchText), 0);
|
||||||
sorter.setRowFilter(rowFilter);
|
sorter.setRowFilter(rowFilter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class MessagePanel extends AbstractTableModel implements IMessageEditorCo
|
|||||||
|
|
||||||
// Length字段根据大小进行排序
|
// Length字段根据大小进行排序
|
||||||
TableRowSorter<DefaultTableModel> sorter = (TableRowSorter<DefaultTableModel>) logTable.getRowSorter();
|
TableRowSorter<DefaultTableModel> sorter = (TableRowSorter<DefaultTableModel>) logTable.getRowSorter();
|
||||||
sorter.setComparator(3, new Comparator<String>() {
|
sorter.setComparator(4, new Comparator<String>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(String s1, String s2) {
|
public int compare(String s1, String s2) {
|
||||||
Integer age1 = Integer.parseInt(s1);
|
Integer age1 = Integer.parseInt(s1);
|
||||||
@@ -69,7 +69,7 @@ public class MessagePanel extends AbstractTableModel implements IMessageEditorCo
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Color字段根据颜色顺序进行排序
|
// Color字段根据颜色顺序进行排序
|
||||||
sorter.setComparator(4, new Comparator<String>() {
|
sorter.setComparator(5, new Comparator<String>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(String s1, String s2) {
|
public int compare(String s1, String s2) {
|
||||||
int index1 = getIndex(s1);
|
int index1 = getIndex(s1);
|
||||||
|
|||||||
Reference in New Issue
Block a user