栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

centos端口扫描 nmap

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

centos端口扫描 nmap

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/603866.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号