Skip to content

Commit d54bd80

Browse files
committed
test: not support obfuscation for jetty suo5 filter
1 parent 0cb8dad commit d54bd80

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

integration-test/src/test/java/com/reajason/javaweb/integration/ShellAssertionTool.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ public static GenerateResult generate(String urlPattern, Server server, String s
238238
if (ShellTool.NeoreGeorg.equals(shellTool)) {
239239
shellConfig.setObfuscate(false);
240240
}
241+
if (Server.Jetty.equals(server) && ShellType.FILTER.equals(shellType) && ShellTool.Suo5.equals(shellTool)) {
242+
shellConfig.setObfuscate(false);
243+
}
241244

242245
ShellToolConfig shellToolConfig = null;
243246
String uniqueName = shellTool + RandomStringUtils.randomAlphabetic(5) + shellType + RandomStringUtils.randomAlphabetic(5) + packer.name();

web/src/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
"try-to-use-shell": "Try to use the memory shell",
133133
"waitingForGeneration": "// Waiting for generation...",
134134
"customShellClass": "Custom shell class is required, base64 or classfile",
135-
"neoreGeorgObfuscate": "Do not support obfuscate for NeoreGeorg"
135+
"neoreGeorgObfuscate": "Do not support obfuscate for NeoreGeorg",
136+
"jettyFilter": "Do not support obfuscate for Jetty Filter Suo5"
136137
},
137138
"version": {
138139
"updateAvailable": "Update Available",

web/src/i18n/zh-CN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
"try-to-use-shell": "尝试利用内存马",
133133
"waitingForGeneration": "// 等待填写参数生成中...",
134134
"customShellClass": "请输入自定义内存马类,base64 或类文件",
135-
"neoreGeorgObfuscate": "NeoreGeorg 目前不支持代码混淆"
135+
"neoreGeorgObfuscate": "NeoreGeorg 目前不支持代码混淆",
136+
"jettyFilter": "Jetty Filter Suo5 暂时不支持代码混淆"
136137
},
137138
"version": {
138139
"updateAvailable": "有可用升级",

web/src/routes/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ function IndexComponent() {
9292
toast.warning(t("tips.neoreGeorgObfuscate"));
9393
return false;
9494
}
95+
96+
if (values.obfuscate && values.server === "Jetty" && values.shellType === "Filter") {
97+
toast.warning(t("tips.jettyFilter"));
98+
return false;
99+
}
95100
return true;
96101
}
97102

0 commit comments

Comments
 (0)