How to scan ports?

0157

To scan ports using Nmap, you can use the following command in your terminal:

nmap <target_ip>

Replace <target_ip> with the IP address of the target you want to scan. For example, to scan a local machine, you might use:

nmap 127.0.0.1

If you want to scan a specific range of ports, you can specify the ports using the -p option:

nmap -p 1-100 <target_ip>

This command scans ports 1 through 100 on the specified target.

For a more detailed scan that includes service version detection, you can use:

nmap -sV <target_ip>

This will provide information about the services running on the open ports.

Make sure to run Nmap with appropriate permissions, as some scans may require elevated privileges.

0 Comments

no data
Be the first to share your comment!