Slightly modified and expanded version of this work: https://linuxconfig.org/bash-scripts-to-scan-and-monitor-network
PORTS="{80,443,22}" ./scan_ports.sh 192.168.{1..4}.{1..255}
| const ips = [ | |
| "192.168.0.1", | |
| "192.168.0.2", | |
| "192.168.1.1", | |
| "192.168.2.1", | |
| "172.16.2.1", | |
| "172.16.2.2", | |
| "172.16.2.10", | |
| "172.16.2.20", | |
| ] |
Slightly modified and expanded version of this work: https://linuxconfig.org/bash-scripts-to-scan-and-monitor-network
PORTS="{80,443,22}" ./scan_ports.sh 192.168.{1..4}.{1..255}