feat: support FilterProbe generate

This commit is contained in:
ReaJason
2026-01-12 02:12:34 +08:00
parent 29852ecf55
commit 726690ede1
14 changed files with 137 additions and 137 deletions
@@ -34,6 +34,7 @@ const PROBE_OPTIONS = [
{ value: "Command" as const, label: "command" },
{ value: "Bytecode" as const, label: "bytecode" },
{ value: "ScriptEngine" as const, label: "script" },
{ value: "Filter" as const, label: "filter" },
] as const;
const MIDDLEWARE_OPTIONS = [
@@ -75,7 +76,7 @@ export default function MainConfigCard({ form, servers }: MainConfigCardProps) {
const filteredOptions = useMemo(() => {
const filterMap = {
ResponseBody: ["Command", "Bytecode", "ScriptEngine"],
ResponseBody: ["Command", "Bytecode", "ScriptEngine", "Filter"],
DNSLog: ["JDK", "Server"],
Sleep: ["Server"],
} as const;
@@ -108,10 +109,12 @@ export default function MainConfigCard({ form, servers }: MainConfigCardProps) {
const isBodyMethod = watchedProbeMethod === "ResponseBody";
const isCommandBody = watchedProbeContent === "Command";
const isFilter = watchedProbeContent === "Filter";
const needParam =
isCommandBody ||
watchedProbeContent === "Bytecode" ||
watchedProbeContent === "ScriptEngine";
!isFilter &&
(isCommandBody ||
watchedProbeContent === "Bytecode" ||
watchedProbeContent === "ScriptEngine");
const isSleepMethod = watchedProbeMethod === "Sleep";
const isServerContent = watchedProbeContent === "Server";
+1
View File
@@ -7,6 +7,7 @@
"probeContent.command": "Command",
"probeContent.jdk": "JDK",
"probeContent.server": "Server",
"probeContent.filter": "FilterList",
"probeMethod": "ProbeMethod",
"quickUsage.step1": "Select Probe Method, DNSLog, Response, etc.",
"quickUsage.step2": "Select Probe Content, JDK, Server, etc.",
+1
View File
@@ -7,6 +7,7 @@
"probeContent.command": "命令执行",
"probeContent.jdk": "JDK 信息",
"probeContent.server": "服务类型",
"probeContent.filter": "Filter 过滤器列表",
"probeMethod": "探测方法",
"quickUsage.step1": "选择探测方法,DNSLog、Response 或者其他",
"quickUsage.step2": "选择探测内容,JDK、服务类型 或者其他",