3. Ping Scan (-sP)

This technique is only used to find out whether the host is available or not. Ping Scan is not used to detect open ports. It sends ICMP echo request and in return gets ICMP echo reply is the host is alive.

Command: nmap -sP <target>