Skip to content

pale-knight/redteam-skill / skills/shell

shell

Flagged

Shell 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.

references/windows-conpty.md

View on GitHub
# Windows ConPTY / Interactive Session Upgrade

## 1. ConPTY 条件

Windows 10/Server 2019 及以后通常具备 Pseudo Console API;具体可用性仍取决于 build 和当前进程环境。

## 2. ConPtyShell

官方项目用于把普通 channel 升级为 fully interactive Windows reverse shell。

```bash
git clone https://github.com/antonioCoco/ConPtyShell.git
```

本地 listener 可按官方建议设置 raw TTY:

```bash
stty raw -echo; (stty size; cat) | nc -lvnp 3001
```

然后通过**已经存在的 Windows command execution**调用 `Invoke-ConPtyShell.ps1` 的对应参数。

如果脚本被 AMSI/EDR 阻断,不在这里复制 AMSI bypass;人工选择 `/edr-bypass`,解决后回来继续 session upgrade。

## 3. 成功判断

```text
PowerShell/cmd prompt stable
arrow keys/history usable where supported
Ctrl-C behavior correct
full-screen/interactive programs behave normally
```
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall