Actions

 Language:
 RSS flow:


nmap command


Introduction

    Nmap allows you to query a computer network or a machine to know who is on the network or which ports are opened on a server.

Overview

    NMap can do a lot of things.

    What machines are on the network

      map -sP -PT -PI -T 3 192.168.2.*
      will returns:
      Starting Nmap 4.62 ( http://nmap.org ) at 2008-12-29 15:11 CET
      Host 192.168.2.1 appears to be up.
      MAC Address: 00:10:4B:C3:93:42 (3com)
      Host 192.168.2.64 appears to be up.
      MAC Address: 00:08:54:09:58:64 (Netronix)
      Host 192.168.2.68 appears to be up.
      Nmap done: 256 IP addresses (3 hosts up) scanned in 5.121 seconds
          

    Knowing what ports are open on a machine

      nmap 192.168.2.64
      will returns:
      Starting Nmap 4.62 ( http://nmap.org ) at 2008-12-29 15:15 CET
      Interesting ports on 192.168.2.64:
      Not shown: 1712 closed ports
      PORT   STATE SERVICE
      22/tcp open  ssh
      53/tcp open  domain
      80/tcp open  http
      MAC Address: 00:08:54:09:58:64 (Netronix)
      
      Nmap done: 1 IP address (1 host up) scanned in 1.626 seconds
          

    Determine what software is behind which port

      nmap -sV -p80 192.168.2.64
      will returns:
      Starting Nmap 4.62 ( http://nmap.org ) at 2008-12-29 15:20 CET
      Interesting ports on 192.168.2.64:
      PORT   STATE SERVICE VERSION
      80/tcp open  http    Apache httpd 2.2.9 ((Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch)
      MAC Address: 00:08:54:09:58:64 (Netronix)
      
      Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
      Nmap done: 1 IP address (1 host up) scanned in 6.472 seconds
          

    Determine what OS is installed on a machine

      nmap -O 192.168.2.64
      will returns:
          

NMap on the Web

 

Go Back