1 comment

[ 3.1 ms ] story [ 11.0 ms ] thread
nice script. came up with this some moons ago:

  seq \
  --equal-width 1 65535 | \
    xargs \
      --max-procs 16 \
      --max-args 1 \
      --replace=_$ \
        nc \
   --verbose \
   -z \
          --wait 1 \
   ${TARGET_HOST} _$ 2>&1 | \
     grep --ignore-case --only-matching --regexp "connected.*"
Served me needs on local subnets