Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
MyScrip
SUBMITTED BY:
Yisusvps
DATE:
July 13, 2023, 8:31 p.m.
FORMAT:
Text only
SIZE:
830 Bytes
Raw
Download
Tweet
HITS:
483
Go to comments
Report
#!/bin/bash
while true; do
echo "BIENVENIDO AL MENÚ PARA VER CONECTADOS"
echo "Seleccione una opción:"
echo "1. Ver conectados en el puerto 80"
echo "2. Ver conectados en el puerto 443"
echo "3. Salir"
read -p "Opción: " opcion
case $opcion in
1)
USUARIOS ACTIVOS_PORT_443=$(sudo netstat -tn | awk '$4 ~ /:80$/ {print> echo "USUARIOS ACTIVOS EN EL PUERTO 80: $PSIPHON_PORT_8> ;;
2)
USUARIOS ACTIVOS_80=$(sudo netstat -tn | awk '$4 ~ /:443$/ {pri> echo "USUARIOS ACTIVOS EN EL PUERTO 80: $PSIPHON_PORT_> ;;
3)
echo "Saliendo del script..."
break
;;
*)
echo "Opción inválida"
;;
esac
echo done
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus