#!/bin/bash

for i in `seq 1 254`
    do
    echo "21 22 23 445 145 3306 5900 5901 139 137 25 8006 8098 8099 1521 2483 3389 1433 5432 110 161 162 389 8080 8008 8291 6379" | tr ' ' '\n' | while read j
    do
        timeout -t 1 nc -v 192.168.163.$i $j >>/tmp/log 2>&1
    done
done
