# Pivoting

## <mark style="color:yellow;">PLINK</mark>

<mark style="color:red;">**Plink**</mark>, short for <mark style="color:red;">**PuTTY Link**</mark>, is a <mark style="color:purple;">**command-line SSH utility**</mark> for Windows included in the **PuTTY** package. Like the SSH command, Plink can be used to set up dynamic port forwarding and create SOCKS proxies.

```powershell
plink -ssh -D 9050 ubuntu@13.13.13.13
```

## <mark style="color:yellow;">NETSH</mark>

<mark style="color:red;">**Netsh**</mark> is a Windows command-line tool that can help with the <mark style="color:purple;">**network configuration**</mark> of a particular Windows system.

#### Port-Forward

```powershell
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=13.13.13.13 connectport=3389 connectaddress=14.14.14.14
```

#### Check port-forward

```powershell
netsh interface portproxy show all
```

```powershell
Listen on ipv4:             Connect to ipv4:

Address         Port        Address         Port
--------------- ----------  --------------- ----------
13.13.13.13     8080        14.14.14.14     3389
```
