mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
feat: support script engine probe
This commit is contained in:
Binary file not shown.
+3
-3
@@ -17,7 +17,7 @@
|
||||
"@biomejs/biome": "2.1.4",
|
||||
"@react-router/dev": "^7.9.6",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/react": "^19.2.5",
|
||||
"@types/react": "^19.2.6",
|
||||
"@types/react-copy-to-clipboard": "^5.0.7",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@types/react-syntax-highlighter": "^15.5.13",
|
||||
@@ -31,7 +31,7 @@
|
||||
"dependencies": {
|
||||
"@hookform/resolvers": "^5.2.2",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"@tanstack/react-query": "^5.90.9",
|
||||
"@tanstack/react-query": "^5.90.10",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
"framer-motion": "^12.23.24",
|
||||
@@ -42,7 +42,7 @@
|
||||
"react": "^19.2.0",
|
||||
"react-copy-to-clipboard": "^5.1.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"react-hook-form": "^7.66.0",
|
||||
"react-hook-form": "^7.66.1",
|
||||
"react-i18next": "^15.7.4",
|
||||
"react-router": "^7.9.6",
|
||||
"react-router-dom": "^7.9.6",
|
||||
|
||||
@@ -31,6 +31,7 @@ const PROBE_OPTIONS = [
|
||||
{ value: "JDK" as const, label: "jdk" },
|
||||
{ value: "Command" as const, label: "command" },
|
||||
{ value: "Bytecode" as const, label: "bytecode" },
|
||||
{ value: "ScriptEngine" as const, label: "script" },
|
||||
] as const;
|
||||
|
||||
const MIDDLEWARE_OPTIONS = [
|
||||
@@ -73,7 +74,7 @@ export default function MainConfigCard({ form, servers }: MainConfigCardProps) {
|
||||
|
||||
const filteredOptions = useMemo(() => {
|
||||
const filterMap = {
|
||||
ResponseBody: ["Command", "Bytecode"],
|
||||
ResponseBody: ["Command", "Bytecode", "ScriptEngine"],
|
||||
DNSLog: ["JDK", "Server"],
|
||||
Sleep: ["Server"],
|
||||
} as const;
|
||||
@@ -207,12 +208,12 @@ export default function MainConfigCard({ form, servers }: MainConfigCardProps) {
|
||||
|
||||
const renderDynamicFields = useCallback(() => {
|
||||
const isBodyMethod = watchedProbeMethod === "ResponseBody";
|
||||
const isCommandOrBytecode =
|
||||
watchedProbeContent === "Command" || watchedProbeContent === "Bytecode";
|
||||
const needParam =
|
||||
watchedProbeContent === "Command" || watchedProbeContent === "Bytecode" || watchedProbeContent === "ScriptEngine";
|
||||
const isSleepMethod = watchedProbeMethod === "Sleep";
|
||||
const isServerContent = watchedProbeContent === "Server";
|
||||
|
||||
if (isBodyMethod && isCommandOrBytecode) {
|
||||
if (isBodyMethod && needParam) {
|
||||
return RequestParamField;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"dnslog.host": "DNSLog Host",
|
||||
"probeContent": "ProbeContent",
|
||||
"probeContent.bytecode": "Bytecode",
|
||||
"probeContent.script": "ScriptEngine",
|
||||
"probeContent.command": "Command",
|
||||
"probeContent.jdk": "JDK",
|
||||
"probeContent.server": "Server",
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
"buttons.generate": "生成探测马",
|
||||
"dnslog.host": "DNSLog 地址",
|
||||
"probeContent": "探测内容",
|
||||
"probeContent.bytecode": "自定义字节码执行",
|
||||
"probeContent.bytecode": "字节码执行",
|
||||
"probeContent.script": "脚本引擎执行",
|
||||
"probeContent.command": "命令执行",
|
||||
"probeContent.jdk": "JDK 信息",
|
||||
"probeContent.server": "服务类型",
|
||||
|
||||
Reference in New Issue
Block a user