Skip to content

Commit

Permalink
Update ChineseTab.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed May 11, 2024
1 parent 72f82cd commit b61859c
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/messageTab/U2C/ChineseTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,35 @@ public String getTabCaption() {
public Component getUiComponent() {
return panel;
}


/**
* 还是需要适当控制减少内存的占用
*
* Content-Type: image/x-icon
Content-Type: image/png
Content-Type: text/css
Content-Type: font/woff2
Content-Type: application/x-protobuf
*/
@Override
public boolean isEnabled(byte[] content, boolean isRequest) {
String contentType = BurpExtender.getHelperPlus().getHeaderValueOf(isRequest, content, "Content-Type");
if (StringUtils.isEmpty(contentType)) {
return true;
}
if (contentType.contains("image/")) {
return false;
}
else if (contentType.contains("text/css")) {
return false;
}
else if (contentType.contains("font/")) {
return false;
}
else if (contentType.contains("x-protobuf")) {
return false;
}

return true;
}

Expand Down

0 comments on commit b61859c

Please sign in to comment.