Bash script to find ports open.
port-scanning.sh
#!/bin/bash host=10.5.5.11 for port in {1..65535}; do timeout .1 bash -c "echo >/dev/tcp/$host/$port" && echo "port $port is open" done echo "Done"
Last updated 2 years ago