revert: obfuscation (#13)

This commit is contained in:
ReaJason
2025-04-06 13:55:17 +08:00
parent 075053c38b
commit cd231c5af7
17 changed files with 20 additions and 101 deletions
-12
View File
@@ -287,18 +287,6 @@ export function MainConfigCard({
</FormItem>
)}
/>
<FormField
control={form.control}
name="obfuscate"
render={({ field }) => (
<FormItem className="flex items-center space-x-2 space-y-0">
<FormControl>
<Switch id="obfuscate" checked={field.value} onCheckedChange={field.onChange} />
</FormControl>
<Label htmlFor="obfuscate">{t("mainConfig.obfuscate")}</Label>
</FormItem>
)}
/>
</div>
</CardContent>
</Card>
+2 -5
View File
@@ -37,8 +37,7 @@
"shellMountType": "Shell Mount Type",
"shellTool": "Shell Tool",
"shrink": "Shrink Bytecode",
"urlPattern": "URL Pattern",
"obfuscate": "Obfuscate"
"urlPattern": "URL Pattern"
},
"optional": "(Optional)",
"packageConfig": {
@@ -131,9 +130,7 @@
"targetServerRequest": "Request",
"try-to-use-shell": "Try to use the memory shell",
"waitingForGeneration": "// Waiting for generation...",
"customShellClass": "Custom shell class is required, base64 or classfile",
"neoreGeorgObfuscate": "Do not support obfuscate for NeoreGeorg",
"jettyFilter": "Do not support obfuscate for Jetty Filter Suo5"
"customShellClass": "Custom shell class is required, base64 or classfile"
},
"version": {
"updateAvailable": "Update Available",
+2 -5
View File
@@ -37,8 +37,7 @@
"shellMountType": "内存马挂载类型",
"shellTool": "内存马功能",
"shrink": "缩小字节码",
"urlPattern": "请求路径",
"obfuscate": "代码混淆"
"urlPattern": "请求路径"
},
"optional": "(可选)",
"packageConfig": {
@@ -131,9 +130,7 @@
"targetServerRequest": "请求适配",
"try-to-use-shell": "尝试利用内存马",
"waitingForGeneration": "// 等待填写参数生成中...",
"customShellClass": "请输入自定义内存马类,base64 或类文件",
"neoreGeorgObfuscate": "NeoreGeorg 目前不支持代码混淆",
"jettyFilter": "Jetty Filter Suo5 暂时不支持代码混淆"
"customShellClass": "请输入自定义内存马类,base64 或类文件"
},
"version": {
"updateAvailable": "有可用升级",
-10
View File
@@ -87,16 +87,6 @@ function IndexComponent() {
toast.warning(t("tips.customShellClass"));
return false;
}
if (values.obfuscate && values.shellTool === ShellToolType.NeoreGeorg) {
toast.warning(t("tips.neoreGeorgObfuscate"));
return false;
}
if (values.obfuscate && values.server === "Jetty" && values.shellType === "Filter") {
toast.warning(t("tips.jettyFilter"));
return false;
}
return true;
}
-1
View File
@@ -19,7 +19,6 @@ export const formSchema = z.object({
injectorClassName: z.optional(z.string()),
packingMethod: z.string().min(1),
shrink: z.optional(z.boolean()),
obfuscate: z.optional(z.boolean()),
shellClassBase64: z.optional(z.string()),
});
-1
View File
@@ -10,7 +10,6 @@ export function transformToPostData(formValue: FormSchema) {
targetJreVersion: formValue.targetJdkVersion,
byPassJavaModule: formValue.bypassJavaModule,
shrink: formValue.shrink,
obfuscate: formValue.obfuscate,
};
const shellToolConfig: ShellToolConfig = {
shellClassName: formValue.shellClassName,