- Practical Network Scanning
- Ajay Singh Chauhan
- 77字
- 2022-07-12 10:43:14
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:

For Linux/Unix, run the following command using the shell prompt:
netstat -antp | grep "LISTEN"
