我常常用它来检测长途的 Windows处事器的ip地点,因为不是牢靠ip地点,该处事器的ip地点会常常变革,可是有个纪律,只在一个网段内变革,这样就给ip地点简直定带来 了利便。
1. 假如没有安装nmap,就安装
yum install -y nmap
nmap -sT -p3389 218.206.112.0/24
3. 假如以为输出太多,九江服务器 东莞服务器,可以用 grep 呼吁过滤
nmap -sT -p3389 218.206.112.0/24 | grep -B2 open
下面是操纵的动静记录,备查。
.
[[email protected] opt]# nmap
-bash: nmap: command not found
[[email protected] opt]# yum install -y nmap
...
[[email protected] opt]# nmap -sT -p3389 218.206.112.0/24
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-10-26 15:36 CST
Interesting ports on 218.206.112.1:
PORT STATE SERVICE
3389/tcp closed ms-term-serv
Interesting ports on 218.206.112.11:
PORT STATE SERVICE
3389/tcp filtered ms-term-serv
...
[[email protected] opt]# nmap -sT -p3389 218.206.112.0/24 | grep -B2 open
Interesting ports on 218.206.112.100:
PORT STATE SERVICE
3389/tcp open ms-term-serv
--
Interesting ports on 218.206.112.132:
PORT STATE SERVICE
3389/tcp open ms-term-serv
[[email protected] opt]#