Skip to content

Commit

Permalink
Update: Optimize speed
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonymousUser committed Oct 27, 2020
1 parent 570fc1e commit ad8ebef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions burp/BurpExtender.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import javax.swing.JLabel;

import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;

public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEditorTabFactory, ITab {

Expand Down Expand Up @@ -263,6 +264,11 @@ public void processHttpMessage(int toolFlag, boolean messageIsRequest, IHttpRequ
// 判断是否是响应,且该代码作用域为:REPEATER、INTRUDER、PROXY(分别对应toolFlag 64、32、4)
if (!messageIsRequest && (toolFlag == 64 || toolFlag == 32 || toolFlag == 4)) {
byte[] content = messageInfo.getResponse();
try {
String c = new String(content, "UTF-8").intern();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
JSONObject jsonObj = matchRegex(content);
if (jsonObj.length() > 0) {
List<String> colorList = new ArrayList<String>();
Expand Down Expand Up @@ -332,6 +338,11 @@ public byte[] getSelectedData() {
*/
@Override
public void setMessage(byte[] content, boolean isRequest) {
try {
String c = new String(content, "UTF-8").intern();
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
if (content.length > 0 && !isRequest) {
String result = "";
JSONObject jsonObj = matchRegex(content);
Expand Down

0 comments on commit ad8ebef

Please sign in to comment.