feat: support AntSword shell generate (#34)

This commit is contained in:
ReaJason
2025-02-19 00:04:29 +08:00
parent e71f980991
commit 583abbf9ba
98 changed files with 2860 additions and 152 deletions
+1
View File
@@ -12,6 +12,7 @@ export const formSchema = z.object({
godzillaPass: z.optional(z.string()),
godzillaKey: z.optional(z.string()),
behinderPass: z.optional(z.string()),
antSwordPass: z.optional(z.string()),
commandParamName: z.optional(z.string()),
headerName: z.optional(z.string()),
headerValue: z.optional(z.string()),
+9 -1
View File
@@ -14,6 +14,7 @@ export interface ShellToolConfig {
godzillaKey?: string;
commandParamName?: string;
behinderPass?: string;
antSwordPass?: string;
headerName?: string;
headerValue?: string;
}
@@ -44,6 +45,13 @@ export interface Suo5ShellToolConfig {
headerValue?: string;
}
export interface AntSwordShellToolConfig {
shellClassName?: string;
pass?: string;
headerName?: string;
headerValue?: string;
}
export interface InjectorConfig {
className?: string;
classInheritance?: string;
@@ -82,6 +90,6 @@ export interface GenerateResult {
injectorSize: number;
injectorBytesBase64Str: string;
shellConfig: ShellConfig;
shellToolConfig: CommandShellToolConfig | GodzillaShellToolConfig | BehinderShellToolConfig;
shellToolConfig: CommandShellToolConfig | GodzillaShellToolConfig | BehinderShellToolConfig | AntSwordShellToolConfig;
injectorConfig: InjectorConfig;
}