In this recipe, we will use the list of active IPs we scanned and saved in the file to perform information gathering, the purpose will be to scan them for open ports on those IPs. We will be using nmap and its features to discover open ports.
We will use the nmap tool to detect open ports on the IP. Let's start with the process of detecting the open ports over a specific IP.
For this recipe, you will need to perform the following steps:
nmap <ip address>
The output will be as shown in the following screenshot: