Version: 2.4.5 Update

This commit is contained in:
AnonymousUser
2022-12-18 16:12:16 +08:00
parent 48e355ac54
commit df4496d4fd
4 changed files with 8 additions and 2 deletions

View File

@@ -143,6 +143,7 @@ public class BurpExtender implements IBurpExtender, IHttpListener, IMessageEdito
public boolean isEnabled(byte[] content, boolean isRequest) {
String c = new String(content, StandardCharsets.UTF_8).intern();
List<Map<String, String>> result = pm.processMessageByContent(helpers, content, isRequest, false, "");
if (result != null && !result.isEmpty()) {
Map<String, String> dataMap = result.get(0);
if (isRequest) {

View File

@@ -13,6 +13,8 @@ public class Config {
public static String[] scopeArray = new String[] {
"any",
"any header",
"any body",
"response",
"response header",
"response body",

View File

@@ -33,23 +33,25 @@ public class ExtractContent {
String engine = objects[5].toString();
boolean sensitive = (Boolean) objects[6];
// 判断规则是否开启与作用域
if (loaded && (scope.contains(scopeString) || "any".equals(scope))) {
if (loaded && (scope.contains(scopeString) || scope.contains("any"))) {
switch (scope) {
case "any":
case "request":
case "response":
matchContent = new String(content, StandardCharsets.UTF_8).intern();
break;
case "any header":
case "request header":
case "response header":
matchContent = headers;
break;
case "any body":
case "request body":
case "response body":
matchContent = new String(body, StandardCharsets.UTF_8).intern();
break;
default:
break;
return;
}
if ("nfa".equals(engine)) {

View File

@@ -1,5 +1,6 @@
package burp.action;
import burp.BurpExtender;
import burp.IExtensionHelpers;
import java.util.ArrayList;
import java.util.Arrays;