# Socat

## Port forwarding

Uses Socat to listen on port 8080 and then to fork when the connection is received. It will then connect to the attack host on port 80.

```bash
socat TCP4-LISTEN:8080,fork TCP4::80
```

Uses Socat to listen on port 8080 and then to fork when the connection is received. Then it will connect to the target host on port 8443.

```bash
socat TCP4-LISTEN:8080,fork TCP4:<IPaddressofTarget>:8443
```
