Ports is a Port Scanner (functional but incomplete).
Requires root for raw network access and libpcap.
- Syn (Stealth) Port Scanning
$ sudo ports syn 192.168.0.0/24 -p 443
Starting Ports at 10 Apr 23 17:38 BST
Ports scan report for (192.168.0.1)
Host is up (11.170167ms latency)
PORT STATE SERVICE
443 open http
Mac Address: 00:00:00.. (some device)
Ports scan report for (192.168.0.2)
Host is up (11.165917ms latency)
PORT STATE SERVICE
443 open http
Mac Address: 00:00:00.. (another device)
...
Ports done: 256 IP address (7 host up) scanned in 6.355709 seconds
Ports may be expressed as ranges, e.g. -p0-10000
$ sudo ports syn scanme.nmap.org -p0-10000
Starting Ports at 08 Apr 23 10:54 BST
Ports scan report for (scanme.nmap.org)
Host is up (164.267875ms latency)
PORT STATE SERVICE
22 open ssh
80 open http
9929 open
Ports done: 1 IP address (1 host up) scanned in 12.001028 seconds
- Host discovery using ARP scan:
$ sudo ports arp 192.168.10.0/24
192.168.0.1 3F:77:B0:33:35:BB Some Vendor
192.168.0.2 3E:77:B0:33:35:BB Some Other Vendor
- Ping:
$ sudo ports ping google.com
33.622791ms
lots.