Skip to content

Commit

Permalink
Version: 2.4.3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousUser committed Sep 20, 2022
1 parent a8f1798 commit 440b3b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import burp.action.*;
import burp.ui.MainUI;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import javax.swing.*;
import java.awt.*;
import java.nio.charset.StandardCharsets;
Expand Down Expand Up @@ -34,7 +34,7 @@ public void registerExtenderCallbacks(final IBurpExtenderCallbacks callbacks)
this.callbacks = callbacks;
BurpExtender.helpers = callbacks.getHelpers();

String version = "2.4.2";
String version = "2.4.3";
callbacks.setExtensionName(String.format("HaE (%s) - Highlighter and Extractor", version));
// 定义输出
stdout = new PrintWriter(callbacks.getStdout(), true);
Expand Down Expand Up @@ -102,8 +102,10 @@ public void processHttpMessage(int toolFlag, boolean messageIsRequest, IHttpRequ
String color = uc.getEndColor(gck.getColorKeys(colorList));

messageInfo.setHighlight(color);

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);
}
Expand Down

0 comments on commit 440b3b1

Please sign in to comment.