Skip to content

pale-knight/redteam-skill / skills/tunnel

tunnel

Verified

Network reachability and pivoting after an operator already has a foothold. Use to make previously unreachable hosts, subnets, services or listener directions reachable via Ligolo-ng, Chisel, GOST v3, SSH/native forwarding, socat/netsh, Microsoft Dev Tunnels, DNS/HTTP/QUIC fallback transports, and multi-hop routing. This module does not exploit services, obtain credentials, or own C2/persistence. Its success condition is changed reachability: the operator can route/connect to the intended internal network/service through the selected foothold.

references/native-forwarding.md

View on GitHub
# Native SSH / socat / netsh Forwarding

## 1. SSH local forward

```bash
ssh -L 127.0.0.1:8443:10.20.30.40:443 user@PIVOT
```

## 2. SSH reverse forward

```bash
ssh -R 0.0.0.0:8080:127.0.0.1:80 user@OPERATOR
```

远端绑定是否允许取决于 `GatewayPorts` 等 sshd 配置。

## 3. SOCKS

```bash
ssh -D 127.0.0.1:1080 user@PIVOT
```

## 4. ProxyJump

```bash
ssh -J user1@PIVOT1 user2@TARGET
```

## 5. socat

```bash
socat TCP-LISTEN:8443,fork,reuseaddr TCP:10.20.30.40:443
```

## 6. Windows netsh portproxy

```cmd
netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=8443 connectaddress=10.20.30.40 connectport=443
netsh interface portproxy show all
```

清理:

```cmd
netsh interface portproxy delete v4tov4 listenaddress=0.0.0.0 listenport=8443
```

注意 Windows Firewall 仍可能需要对应入站规则;那是 reachability 配置,不是 EDR bypass。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall