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.
 
 
 
 
 
 
smol_scriptz/port_scan_without_nmap.sh

7 lines
156 B

#!/bin/bash
host=$1
for port in {1..65535}; do
timeout .1 bash -c "</dev/tcp/$host/$port &>/dev/null" && echo "port $port is open"
done
echo "Done!"