![Practical Network Scanning](https://wfqqreader-1252317822.image.myqcloud.com/cover/882/36699882/b_36699882.jpg)
上QQ阅读APP看书,第一时间看更新
Check for open ports or services
Identifying open ports on servers requires the port to be opened and unnecessary services to be disabled or shutdown. The server should have a minimal operating system configuration.
For Windows, run the following command using the Command Prompt:
netstat -a | findstr "LISTEN"
The ouptu of the preceding command is as shown in the screenshot:
![](https://epubservercos.yuewen.com/A59D98/19470393501566506/epubprivate/OEBPS/Images/Chapter_63.jpg?sign=1738879599-hmriw9WsHZaHRBszXddDhUkJx93dAYLF-0-a71cb9560db75f3789c2730cbd486bf1)
For Linux/Unix, run the following command using the shell prompt:
netstat -antp | grep "LISTEN"
![](https://epubservercos.yuewen.com/A59D98/19470393501566506/epubprivate/OEBPS/Images/Chapter_60.jpg?sign=1738879599-JOVfQIYrBEKnkHv238ndOarN5GtJzyba-0-3b1d9850d8d2eadd82f9323f46ec8d81)