O'Reilly logo

BackTrack 5 Cookbook by David De Smet, Willie Pritchett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Finding open ports

With the knowledge of the victim's network range and the active machines, we'll proceed with the port scanning process to retrieve the open TCP and UDP ports and access points.

Getting ready

The Apache web server must be started in order to complete this recipe.

How to do it...

Let's begin the process of finding open ports by opening a terminal window:

  1. To begin, launch a terminal window and enter the following command:
    nmap 192.168.56.102
    
    How to do it...
  2. We can also explicitly specify the ports to scan (we are scanning 1000 ports in this case):
    nmap -p 1-1000 192.168.56.102
    
  3. Or specify Nmap to scan the organization's whole network on TCP port 22:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required