标签归档:netstat

netstat/lsof/nmap端口检测

netstat/lsof/nmap端口检测

·校验哪些端口正在监听

# nmap -sT -O localhost

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2005-05-09 22:07 CST
Interesting ports on cnscn (127.0.0.1):
(The 1648 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
80/tcp open http
111/tcp open rpcbind
443/tcp open https
631/tcp open ipp
951/tcp open unknown
970/tcp open unknown
2049/tcp open nfs
3306/tcp open mysql
32771/tcp open sometimes-rpc5
32772/tcp open sometimes-rpc7
Device type: general purpose
Running: Linux 2.4.X|2.5.X|2.6.X
OS details: Linux 2.5.25 - 2.6.3 or Gentoo 1.2 Linux 2.4.19 rc1-rc7)
Uptime 0.081 days (since Mon May 9 20:11:26 2005)

Nmap run completed -- 1 IP address (1 host up) scanned in 3.014 seconds 继续阅读