nmap-to-iplist.sh 146 B

12345678
  1. #!/bin/sh
  2. if [[ $# -ne 1 ]]; then
  3. echo "usage: toiplist.sh <scan.gnmap>"
  4. exit 1
  5. fi
  6. cat $1 | awk '{print $2}' | head -n -1 | tail -n +2