> For the complete documentation index, see [llms.txt](https://hacking-3.gitbook.io/barre/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-3.gitbook.io/barre/apuntes/red-team/tools/chisel.md).

# Chisel

**Chisel** es un túnel rápido TCP/UDP, transportado sobre HTTP, asegurado vía SSH. Un único ejecutable que incluye cliente y servidor.&#x20;

Escrito en Go (golang).&#x20;

**Chisel** es principalmente útil para pasar a través de cortafuegos, aunque también se puede utilizar para proporcionar un punto final seguro en su red.

## Descarga

{% embed url="<https://github.com/jpillora/chisel>" %}

<figure><img src="/files/795RRuPy5t4WEOve7nvJ" alt=""><figcaption></figcaption></figure>

Entramos en el apartado R**eleases** y descargamos la de nuestro sistema operativo

Para Linux:

* [chisel\_1.10.0\_linux\_386.gz](https://github.com/jpillora/chisel/releases/download/v1.10.0/chisel_1.10.0_linux_386.gz)
* [chisel\_1.10.0\_linux\_amd64.gz](https://github.com/jpillora/chisel/releases/download/v1.10.0/chisel_1.10.0_linux_amd64.gz)

Para Windows:

* [chisel\_1.10.0\_windows\_386.gz](https://github.com/jpillora/chisel/releases/download/v1.10.0/chisel_1.10.0_windows_386.gz)
* [chisel\_1.10.0\_windows\_amd64.gz](https://github.com/jpillora/chisel/releases/download/v1.10.0/chisel_1.10.0_windows_amd64.gz)

## Uso

<figure><img src="/files/qscHjv6UBtn3S1jNmkxI" alt=""><figcaption></figcaption></figure>

1º Nos pasamos la herramienta de chisel a la maquina puente

2º Creamos un servidor de chisel en nuestro equipo

```bash
./chisel server -p 8888 --reverse
```

3º Creamos el cliente proxy en la maquina puente

```bash
./chisel client 192.168.1.59:8888 R:socks
```

4º Configuramos el fichero de `proxychains`

<figure><img src="/files/cgNmqVr9cM5l0OgIVOeu" alt=""><figcaption></figcaption></figure>

5º Uso final

```bash
proxychains comando que quieras usar 
```

## Port forwarding

1º Nos pasamos la herramienta de chisel a la maquina puente

2º Creamos un servidor de chisel en nuestro equipo

```bash
./chisel server -p 8888 --reverse
```

3º Creamos el cliente proxy en la maquina puente, diciendo su puerto que queremos que sea el nuestro

```bash
./chisel client 192.168.1.59:8888 R:22:127.0.0.1:22
```

{% hint style="info" %}
Aqui le estamos diciendo que su puerto 22 sea el nuestro&#x20;
{% endhint %}

4º Configuramos el fichero de `proxychains`

5º Uso final

```bash
proxychains comando que quieras usar 
```

## Videos

{% embed url="<https://www.youtube.com/watch?v=6eOA8JKKqUk>" %}
