centos端口扫描 nmap

本文档记录了在服务器上通过yum安装nmap的过程,并展示了使用nmap进行端口扫描的命令及结果,扫描目标为61.144.203.35,扫描范围为0-65535端口,发现开放的端口有22/tcp(SSH)、80/tcp(HTTP)、8888/tcp(Sun Answer Book)和9999/tcp(Abyss Web Server)。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在服务器上安装 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 ~]# 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值