nmap adalah aplikasi scanner jaringan berbasis command line interface (cli) tersedia untuk sistem operasi Linux, Windows, dan OS X.
*Install di Ubuntu*
[INPUT]1 sudo apt-get install nmap
Scan IP Address yang aktif dalam satu network
[INPUT]1 nmap -sP 172.16.0.56/24
Hasilnya ada 15 IP Address yang aktif.
[INPUT]1 2 3 4 5 6 7 8 9 10 Starting Nmap 6.40 ( http://nmap.org ) at 2015-06-20 15:18 WITA Nmap scan report for 172.16.0.27 Host is up (0.14s latency). Nmap scan report for 172.16.0.32 Host is up (0.44s latency). Nmap scan report for 172.16.0.37 Host is up (0.063s latency). Nmap scan report for 172.16.0.38 … Nmap done: 256 IP addresses (15 hosts up) scanned in 44.28 seconds
Scan port yang terbuka
[INPUT]1 nmap 172.16.0.1
Hasilnya
[INPUT]1 2 3 4 5 6 7 8 9 10 11 Host is up (0.24s latency). Not shown: 992 closed ports PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 23/tcp open telnet 53/tcp open domain 80/tcp open http 443/tcp open https 2000/tcp open cisco-sccp 8291/tcp open unknown
Scan port tertentu
[INPUT]1 nmap -p 80 172.16.0.1
Scan beberapa port
[INPUT]1 nmap -p 80,21,22 172.16.0.1
Scan rentang port
[INPUT]1 nmap -p 80-200 172.16.0.1
Identifikasi sistem operasi
[INPUT]1 sudo nmap -O 172.16.0.1
Hasilnya
[INPUT]1 2 3 4 5 … Running: Linux 2.6.X|3.X OS CPE: cpe:/o:linux:linux_kernel:2.6 cpe:/o:linux:linux_kernel:3 OS details: Linux 2.6.32 – 3.9 …
Identifikasi hostname
[INPUT]1 nmap -sL 172.16.0.1
Hasilnya
[INPUT]1 Nmap scan report for dilo.makassar.local (172.16.0.1)
Scan versi service/layanan
[INPUT]1 nmap -sV 172.16.0.1
Hasilnya
[INPUT]1 2 3 4 5 Not shown: 997 closed ports PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 2.4.7 ((Ubuntu)) 139/tcp open netbios-ssn Samba smbd 3.X (workgroup: TRUSTY) 445/tcp open netbios-ssn Samba smbd 3.X (workgroup: TRUSTY)
Scan deteksi firewall
[INPUT]1 sudo nmap -sA 172.16.0.56
Hasilnya
[INPUT]1 2 3 Nmap scan report for 172.16.0.56 Host is up (0.000011s latency). All 1000 scanned ports on 172.16.0.56 are unfiltered
Perintah lebih lengkap baca *man nmap*
selamat mencoba ð
referensi: cyberciti.biz tecmint.com bencane.com shellhacks.com