# Socks Forwarding

## SSH

From here <https://theyhack.me/Proxychains-Double-Pivoting/>

```bash
ssh -f -N -D 127.0.0.1:1111 carlitos@10.10.10.10
```

## pivotnacci

From here <https://github.com/blackarrowsec/pivotnacci>

## Ligolo‐ng

From here <https://github.com/nicocha30/ligolo-ng>

## chisel

From here <https://github.com/jpillora/chisel>

> It's the same for both Windows and Linux

Server:

```bash
chisel server -p 1080 --reverse
```

Client:

```bash
chisel client 10.10.10.10:1080 R:1111:socks
```

Activate proxy:

```bash
# cat /etc/proxychains.conf
# ...
socks5 127.0.0.1 1111
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lanzt.gitbook.io/cheatsheet-pentest/pivoting/socks-forwarding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
