You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
193B

  1. #!usr/bin/env bash
  2. ip="$1"
  3. max="$2"
  4. for (( i=1; i<=$max; i++ )); do
  5. bash -c "(</dev/tcp/$ip/$i) >/dev/null 2>&1" && echo -e "\nOpen:\t$i" || echo -ne "($((i-MINPORT))/$((max-1)))\r";
  6. done