Linuxでnmapをインストール、開いているポートを調べる

1.nampのインストール
# yum -y install nmap
URL:http://nmap.org/

2.使い方
2.1 ネットワークのポートを調べる
[root@startnews24 ~]# nmap -sP 192.168.32.0/24
Starting Nmap 5.51 ( http://nmap.org ) at 2014-08-13 22:56 JST
Host 192.168.32.1 appears to be up.
MAC Address: 00:50:56:C0:00:08 (VMWare)
Host XXX.com (192.168.32.50) appears to be up.
Host 192.168.32.254 appears to be up.
MAC Address: 00:50:56:E1:E2:F8 (VMWare)
Nmap finished: 256 IP addresses (3 hosts up) scanned in 5.476 seconds

2.2 ローカルのポートを調べる
[root@pps ~]# nmap -sTU localhost
Starting Nmap 5.51 ( http://nmap.org ) at 2014-08-13 22:59 JST
Interesting ports . localhost.localdomain (127.0.0.1):
Not shown: 3156 closed ports
PORT STATE SERVICE
25/tcp open smtp
53/tcp open domain
80/tcp open http
111/tcp open rpcbind
631/tcp open ipp
953/tcp open rndc
3306/tcp open mysql

 

Linux

Posted by arkgame