Linux下检查系统开放的端口及服务
(2009-07-03 16:16:51)
标签:
linuxit |
以下是在RHEL5中运行示例:
[root@RHEL5 ~]# nmap -sT -O localhost
Starting Nmap 4.11 (
http://www.insecure.org/nmap/ ) at 2008-03-19 22:14 CST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS
is disabled. Try using --system-dns or specify valid servers with
--dns_servers
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1670 closed ports
PORT
21/tcp
22/tcp
23/tcp
25/tcp
111/tcp
609/tcp
631/tcp
1521/tcp open
2601/tcp open
6103/tcp open
No exact OS matches for host (If you know what OS is running on it,
see http://www.insecure.org/cgi-bin/nmap-submit.cgi).
TCP/IP fingerprint:
SInfo(V=4.11%P=i686-redhat-linux-gnu%D=3/19%Tm=47E11FD8%O=21%C=1)
Nmap finished: 1 IP address (1 host up) scanned in 9.886 seconds
或者使用netstat -anp命令来查看:
[root@RHEL5 ~]# netstat -anp | grep LISTEN
Proto Recv-Q Send-Q Local
Address
tcp
tcp
tcp
tcp

加载中…