Skip to content

Commit 32fe993

Browse files
committed
完成基本功能开发
1 parent 82f4849 commit 32fe993

File tree

15 files changed

+780
-135
lines changed

15 files changed

+780
-135
lines changed

.idea/API-Highlighter.iml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/Maven__com_jgoodies_forms_1_2_1.xml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/libraries/Maven__org_apache_commons_commons_lang3_3_12_0.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
</dependency>
5858

5959
<dependency>
60-
<groupId>com.jgoodies</groupId>
61-
<artifactId>forms</artifactId>
62-
<version>1.2.1</version>
60+
<groupId>org.apache.commons</groupId>
61+
<artifactId>commons-lang3</artifactId>
62+
<version>3.12.0</version> <!-- 选择适合的版本 -->
6363
</dependency>
6464

6565
</dependencies>

src/main/java/com/chave/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public void initialize(MontoyaApi montoyaApi) {
2121
// 初始化ui
2222
MainUI ui = new MainUI(montoyaApi);
2323
API.userInterface().registerSuiteTab("API Highlighter", ui.getMainPanel());
24-
API.http().registerHttpHandler(new APIHighLighterHandler(montoyaApi));
24+
API.http().registerHttpHandler(new APIHighLighterHandler());
2525
}
2626
}
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
package com.chave.config;
22

3+
import burp.api.montoya.MontoyaApi;
34
import com.chave.pojo.APIItem;
5+
import lombok.SneakyThrows;
46

7+
import java.lang.reflect.Field;
58
import java.util.ArrayList;
9+
import java.util.Collections;
10+
import java.util.Comparator;
611
import java.util.HashMap;
712

813
public class APIConfig {
914
public static ArrayList<APIItem> TARGET_API = new ArrayList<>();
10-
public static ArrayList<String> USER_INPUT_API = new ArrayList<>();
1115

12-
// 初始化一些测试数据
16+
public static final HashMap ITEM_FIELD = new HashMap();
17+
1318
static {
14-
TARGET_API.add(new APIItem("GET", "/api/v1/info"));
15-
TARGET_API.add(new APIItem("GET", "/api/v1/{id}/info"));
16-
TARGET_API.add(new APIItem("GET", "/api/v1/{id}/product/{name}"));
19+
ITEM_FIELD.put(0, "method");
20+
ITEM_FIELD.put(1, "path");
21+
ITEM_FIELD.put(2, "result");
22+
ITEM_FIELD.put(3, "state");
23+
ITEM_FIELD.put(4, "note");
24+
ITEM_FIELD.put(5, "domain");
1725
}
26+
1827
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.chave.config;
2+
3+
public class Color {
4+
public static String NONE = "None";
5+
public static String RED = "Red";
6+
public static String ORANGE = "Orange";
7+
public static String YELLOW = "Yellow";
8+
public static String GREEN = "Green";
9+
public static String CYAN ="Cyan";
10+
public static String BLUE = "Blue";
11+
public static String PINK = "Pink";
12+
public static String MAGENTA = "Magenta";
13+
public static String GRAY = "Gray";
14+
}

src/main/java/com/chave/config/UserConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
import com.chave.pojo.MatchMod;
44

55
public class UserConfig {
6-
public static MatchMod MATCH_MOD = MatchMod.semiFuzzMatch;
7-
public static Boolean IS_REGULAR_REPLACE = Boolean.FALSE;
6+
public static MatchMod MATCH_MOD = MatchMod.exactMatch;
87
public static Boolean IS_URL_ENCODE = Boolean.FALSE;
8+
public static Boolean IS_CHECK_ENTIRE_REQUEST = Boolean.FALSE;
9+
public static Boolean IS_CHECK_HTTP_METHOD = Boolean.FALSE;
10+
public static Boolean IS_ANALYZE_PATHVARIABLE = Boolean.FALSE;
911
}

0 commit comments

Comments
 (0)