在服务器上安装 nmap
[root@119 ~]# yum install nmap Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 epel | 4.7 kB 00:00:00 extras | 2.9 kB 00:00:00 gitlab_gitlab-ce/x86_64/signature | 862 B 00:00:00 gitlab_gitlab-ce/x86_64/signature | 1.0 kB 00:00:00 !!! gitlab_gitlab-ce-source/signature | 862 B 00:00:00 gitlab_gitlab-ce-source/signature | 951 B 00:00:00 !!! runner_gitlab-runner/x86_64/signature | 862 B 00:00:00 runner_gitlab-runner/x86_64/signature | 1.0 kB 00:00:00 !!! runner_gitlab-runner-source/signature | 862 B 00:00:00 runner_gitlab-runner-source/signature | 951 B 00:00:00 !!! updates | 2.9 kB 00:00:00 (1/9): base/7/x86_64/group_gz | 153 kB 00:00:00 (2/9): epel/x86_64/group_gz | 96 kB 00:00:00 (3/9): epel/x86_64/updateinfo | 1.0 MB 00:00:00 (4/9): extras/7/x86_64/primary_db | 243 kB 00:00:00 (5/9): docker-ce-stable/x86_64/updateinfo | 55 B 00:00:00 (6/9): docker-ce-stable/x86_64/primary_db | 69 kB 00:00:00 (7/9): base/7/x86_64/primary_db | 6.1 MB 00:00:00 (8/9): epel/x86_64/primary_db | 7.0 MB 00:00:01 (9/9): updates/7/x86_64/primary_db | 12 MB 00:00:04 (1/4): runner_gitlab-runner-source/primary | 175 B 00:00:02 (2/4): gitlab_gitlab-ce-source/primary | 175 B 00:00:02 (3/4): runner_gitlab-runner/x86_64/primary | 9.2 kB 00:00:02 (4/4): gitlab_gitlab-ce/x86_64/primary | 3.0 MB 00:00:05 Determining fastest mirrors gitlab_gitlab-ce 761/761 runner_gitlab-runner 100/100 Resolving Dependencies --> Running transaction check ---> Package nmap.x86_64 2:6.40-19.el7 will be installed --> Processing Dependency: nmap-ncat = 2:6.40-19.el7 for package: 2:nmap-6.40-19.el7.x86_64 --> Running transaction check ---> Package nmap-ncat.x86_64 2:6.40-19.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================================================================================================================================== Installing: nmap x86_64 2:6.40-19.el7 base 3.9 M Installing for dependencies: nmap-ncat x86_64 2:6.40-19.el7 base 206 k Transaction Summary ============================================================================================================================================================================================================================================================================== Install 1 Package (+1 Dependent package) Total download size: 4.2 M Installed size: 17 M Is this ok [y/d/N]: y Downloading packages: (1/2): nmap-ncat-6.40-19.el7.x86_64.rpm | 206 kB 00:00:00 (2/2): nmap-6.40-19.el7.x86_64.rpm | 3.9 MB 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Total 9.1 MB/s | 4.2 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 2:nmap-ncat-6.40-19.el7.x86_64 1/2 Installing : 2:nmap-6.40-19.el7.x86_64 2/2 Verifying : 2:nmap-ncat-6.40-19.el7.x86_64 1/2 Verifying : 2:nmap-6.40-19.el7.x86_64 2/2 Installed: nmap.x86_64 2:6.40-19.el7 Dependency Installed: nmap-ncat.x86_64 2:6.40-19.el7 Complete! [root@119 ~]#
执行命令扫描 nmap -sS -p 0-65535 61.144.203.35
[root@119 ~]# nmap -sS -p 0-65535 61.144.203.35 Starting Nmap 6.40 ( http://nmap.org ) at 2021-11-27 12:01 CST Nmap scan report for 61.144.203.35 Host is up (0.0038s latency). Not shown: 65532 filtered ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 8888/tcp open sun-answerbook 9999/tcp open abyss Nmap done: 1 IP address (1 host up) scanned in 104.00 seconds [root@119 ~]#



