Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- host="$1"
- func_netstat () {
- echo "Conexiones activas:"
- netstat -tn | grep ESTABLISHED
- }
- while :;do
- clear
- echo "Esperando conexion del host '$host'"
- func_netstat
- if func_netstat | grep ":80" | grep $host; then
- echo se contro el host $host
- echo escaneando ip
- nmap $host
- break # interrumpe el bucle
- fi
- sleep 0.5
- done
Advertisement