mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
feat: support FilterProbe generate
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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.",
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"probeContent.command": "命令执行",
|
||||
"probeContent.jdk": "JDK 信息",
|
||||
"probeContent.server": "服务类型",
|
||||
"probeContent.filter": "Filter 过滤器列表",
|
||||
"probeMethod": "探测方法",
|
||||
"quickUsage.step1": "选择探测方法,DNSLog、Response 或者其他",
|
||||
"quickUsage.step2": "选择探测内容,JDK、服务类型 或者其他",
|
||||
|
||||
Reference in New Issue
Block a user