Skip to content

PortScan.sh

port-scan.sh

#!/usr/bin/env bash
IP="$1"; for port in $(seq 1 65535); do (echo '.' >/dev/tcp/$IP/$port && echo "OPEN: $port" &) 2>/dev/null; done
chmod + port-scan.sh
./port-scan.sh 127.0.0.1