Scan Port Jaringan Dengan Menggunakan NMAP Centos


Di sini saya akan mempsting bagaimana caranya menscan port jaringan dengan menggunakan nmap, nah sebelum kita lanjut ke pokok topik yang akan di bahas kita harus tau dulu apa fungsi dari NMAP (“Network Mapper”) jadi berfungsi untuk scan port network kalo menurut saya tapi kalo lebih detail nya bisa di akses ke situs resminya NMAP adapun cara install nya adalah

yum install nmap

Process installasi seperti di bawah ini


Loaded plugins: fastestmirror, protectbase
Determining fastest mirrors
epel/metalink | 5.2 kB 00:00
* base: mirror.smartmedia.net.id
* epel: mirror.smartmedia.net.id
* extras: mirror.smartmedia.net.id
* updates: mirror.smartmedia.net.id
base | 3.7 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:01
extras | 3.3 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.4 MB 00:01
0 packages excluded due to repository protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:5.51-3.el6 will be installed
--> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-5.51-3.el6.x86_64
--> Running transaction check
---> Package libpcap.x86_64 14:1.4.0-1.20130826git2dbcaa1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
nmap x86_64 2:5.51-3.el6 base 2.7 M
Installing for dependencies:
libpcap x86_64 14:1.4.0-1.20130826git2dbcaa1.el6 base 130 k

Transaction Summary
========================================================================================================================================================================
Install 2 Package(s)

Total download size: 2.9 M
Installed size: 10 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64.rpm | 130 kB 00:00
(2/2): nmap-5.51-3.el6.x86_64.rpm | 2.7 MB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 4.4 MB/s | 2.9 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 14:libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64 1/2
Installing : 2:nmap-5.51-3.el6.x86_64 2/2
Verifying : 14:libpcap-1.4.0-1.20130826git2dbcaa1.el6.x86_64 1/2
Verifying : 2:nmap-5.51-3.el6.x86_64 2/2

Installed:
nmap.x86_64 2:5.51-3.el6

Dependency Installed:
libpcap.x86_64 14:1.4.0-1.20130826git2dbcaa1.el6

Complete!

Ada pun cara kerjanya apabila kita mau scan port bisa dengan menggunakan contoh perintah berikut ini :


]# nmap -p 83 192.168.1

Starting Nmap 5.51 ( http://nmap.org ) at 2014-10-24 00:46 WIB
Nmap scan report for 140.iglobal.co.id (115.124.94.140)
Host is up (0.00052s latency).
PORT STATE SERVICE
83/tcp open mit-ml-dev
MAC Address: 5C:D9:98:44:A0:9D (D-Link)

Nmap done: 1 IP address (1 host up) scanned in 0.12 seconds

Namun apabila kita menggunakan range berapa – berapa nya bisa dengan menggunakan syntak di bawah ini


nmap -p 80-89 192.168.1.1

Starting Nmap 5.51 ( http://nmap.org ) at 2014-10-24 00:48 WIB
Nmap scan report for 192.168.1.1
Host is up (0.0029s latency).
PORT STATE SERVICE
80/tcp closed http
81/tcp open hosts2-ns
82/tcp closed xfer
83/tcp open mit-ml-dev
84/tcp open ctf
85/tcp open mit-ml-dev
86/tcp closed mfcobol
87/tcp closed priv-term-l
88/tcp closed kerberos-sec
89/tcp closed su-mit-tg
MAC Address: 5C:D9:98:44:A0:9D (D-Link)

Nmap done: 1 IP address (1 host up) scanned in 0.13 seconds

Bisa juga untuk mendeteksi system operasai apa yang di gunakan dengan menggunakan syntak di bawah ini :

nmap -O --osscan-guess 192.168.1.1

Apabila ada yang kurang bisa menggunakan help nya

# nmap --help

Demikian i nformasi nya semoga bermanfaat ya yang lagi mencari

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s