Herramientas Personales

escucha-puerto.sh

por Ruiz de Clavijo, Paulino Última modificación 22/11/2019 16:48

escucha-puerto.sh — text/x-sh, 0Kb

Contenido del Archivo

#!/bin/bash

if [ -z $1 ] ; then
 echo "Uso: $0 <puerto>"
 exit 255
fi

echo "Escuchando en el puerto TCP $1. (CTRL+C para detener)"
socat  TCP-LISTEN:$1,reuseaddr,fork SYSTEM:"hexdump -v /dev/zero"
Acciones de Documento