How to scan for open ports?

0135

To scan for open ports on a target machine, you can use Nmap. Here are some basic commands:

  1. Scan the most common 1000 ports on localhost:

    nmap localhost
  2. Scan all 65535 ports:

    nmap -p- localhost
  3. Scan a specific range of ports (e.g., ports 1 to 1000):

    nmap -p 1-1000 localhost
  4. Scan a specific IP address:
    Replace <YOUR_IP> with the target IP address.

    nmap <YOUR_IP>

These commands will provide you with a list of open, closed, and filtered ports along with the services running on those ports.

0 Comments

no data
Be the first to share your comment!