mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
revert: obfuscation (#13)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "有可用升级",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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()),
|
||||
});
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user