CentOS 7安装最新版本NMAP
nmap是一款非常实用的扫描工具,适用于linux、windows、mac三大主流平台。
直接yum安装nmap
# yum install nmap
Loaded plugins: fastestmirror
Determining fastest mirrors* base: mirrors.tuna.tsinghua.edu.cn* extras: mirrors.tuna.tsinghua.edu.cn* updates: mirrors.tuna.tsinghua.edu.cn
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): extras/7/x86_64/primary_db | 156 kB 00:00:00
(2/2): updates/7/x86_64/primary_db | 1.4 MB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:6.40-16.el7 will be installed
--> Processing Dependency: nmap-ncat = 2:6.40-16.el7 for package: 2:nmap-6.40-16.el7.x86_64
--> Processing Dependency: libpcap.so.1()(64bit) for package: 2:nmap-6.40-16.el7.x86_64
--> Running transaction check
---> Package libpcap.x86_64 14:1.5.3-11.el7 will be installed
---> Package nmap-ncat.x86_64 2:6.40-16.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved=============================================================================================================================================================================================================================================Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:nmap x86_64 2:6.40-16.el7 base 3.9 M
Installing for dependencies:libpcap x86_64 14:1.5.3-11.el7 base 138 knmap-ncat x86_64 2:6.40-16.el7 base 206 kTransaction Summary
=============================================================================================================================================================================================================================================
Install 1 Package (+2 Dependent packages)Total download size: 4.3 M
Installed size: 17 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libpcap-1.5.3-11.el7.x86_64.rpm | 138 kB 00:00:00
(2/3): nmap-ncat-6.40-16.el7.x86_64.rpm | 206 kB 00:00:00
(3/3): nmap-6.40-16.el7.x86_64.rpm | 3.9 MB 00:00:02
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 2.1 MB/s | 4.3 MB 00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionInstalling : 14:libpcap-1.5.3-11.el7.x86_64 1/3 Installing : 2:nmap-ncat-6.40-16.el7.x86_64 2/3 Installing : 2:nmap-6.40-16.el7.x86_64 3/3 Verifying : 14:libpcap-1.5.3-11.el7.x86_64 1/3 Verifying : 2:nmap-ncat-6.40-16.el7.x86_64 2/3 Verifying : 2:nmap-6.40-16.el7.x86_64 3/3 Installed:nmap.x86_64 2:6.40-16.el7 Dependency Installed:libpcap.x86_64 14:1.5.3-11.el7 nmap-ncat.x86_64 2:6.40-16.el7 Complete!
发现并不是最新版本
# yum info nmap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.tuna.tsinghua.edu.cn* extras: mirrors.tuna.tsinghua.edu.cn* updates: mirrors.tuna.tsinghua.edu.cn
Installed Packages
Name : nmap
Arch : x86_64
Epoch : 2
Version : 6.40
Release : 16.el7
Size : 16 M
Repo : installed
From repo : base
Summary : Network exploration tool and security scanner
URL : http://nmap.org/
License : GPLv2 and LGPLv2+ and GPLv2+ and BSD
Description : Nmap is a utility for network exploration or security auditing. It supports: ping scanning (determine which hosts are up), many port scanning techniques: (determine what services the hosts are offering), and TCP/IP fingerprinting: (remote host operating system identification). Nmap also offers flexible target: and port specification, decoy scanning, determination of TCP sequence: predictability characteristics, reverse-identd scanning, and more. In addition: to the classic command-line nmap executable, the Nmap suite includes a flexible: data transfer, redirection, and debugging tool (netcat utility ncat), a utility: for comparing scan results (ndiff), and a packet generation and response analysis: tool (nping).
升级一下看看,发现也不能直接升级
# yum update nmap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.tuna.tsinghua.edu.cn* extras: mirrors.tuna.tsinghua.edu.cn* updates: mirrors.tuna.tsinghua.edu.cn
No packages marked for update
直接yum卸载掉
# yum remove nmap
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package nmap.x86_64 2:6.40-16.el7 will be erased
--> Finished Dependency ResolutionDependencies Resolved=============================================================================================================================================================================================================================================Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Removing:nmap x86_64 2:6.40-16.el7 @base 16 MTransaction Summary
=============================================================================================================================================================================================================================================
Remove 1 PackageInstalled size: 16 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transactionErasing : 2:nmap-6.40-16.el7.x86_64 1/1 Verifying : 2:nmap-6.40-16.el7.x86_64 1/1 Removed:nmap.x86_64 2:6.40-16.el7 Complete!
按官方文档只鹅接rpm安装最新版本的nmap
# rpm -vhU https://nmap.org/dist/nmap-7.70-1.x86_64.rpm
Retrieving https://nmap.org/dist/nmap-7.70-1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...1:nmap-2:7.70-1 ################################# [100%]
安装成功
#nmap --version
Nmap version 7.70 ( https://nmap.org )
Platform: x86_64-redhat-linux-gnu
Compiled with: liblua-5.3.3 openssl-1.0.2n nmap-libssh2-1.8.0 nmap-libz-1.2.8 nmap-libpcre-7.6 nmap-libpcap-1.7.3 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
查看一下本机开放的端口情况
# nmap localhost
Starting Nmap 7.70 ( https://nmap.org ) at 2019-01-30 04:21 EST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000026s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtpNmap done: 1 IP address (1 host up) scanned in 0.15 seconds
NMAP功能强大,各位好好用吧!
CentOS 7安装最新版本NMAP相关推荐
- 手把手教你如何在 Linux 上源码安装最新版本 R
如果你使用的 Linux 系统 GCC 版本太低,又没有 root 权限(即使有 root 权限又担心升级 GCC 带来的风险):同时你又不想额外多安装多一个 Anaconda 或者 Minicond ...
- Centos7 下定义MariaDB源Yum安装最新版本的MariaDB
Centos7 下定义MariaDB源Yum安装最新版本的MariaDB 在Centos下安装软件服务的方式一般就那么几种(yum.rpm ivh xxx.make make&&ins ...
- 在 Ubuntu 上安装最新版本的 Erlang方法介绍
Erlang 是一种用于构建大规模可扩展实时系统的函数式编程语言.Erlang 最初是由 爱立信 创建的专有软件,后来被开源. Erlang 在 Ubuntu 的 Universe 仓库 中可用.启用 ...
- ubuntu安装python_ubuntu18.04下源码编译安装最新版本Python3
原文链接:ubuntu18.04下源码编译安装最新版本Python3 截止到2019年4月9日,Python3最新的版本是3.7.3. 在ubuntu18.04中已经安装的Python3版本是3.6. ...
- 如何在Ubuntu上安装最新版本的Node js
如何在Ubuntu上安装最新版本的Node.js 作者:chszs,转载需注明.博客主页:http://blog.csdn.net/chszs Node.js是一个软件平台,通常用于构建大规模的服务器 ...
- kali2020安装最新版本Java
kali2020安装最新版本Java 由于最新数据库系统概论要做大作业,其中要用到java环境,而kali自带的java环境并不适用,因此需要卸载原有版本并安装新的版本,因此写个博客记录一下. 虚拟机 ...
- 如何安装最新版本的office(preview预览版)、更新
如何安装最新版本的office(preview预览版)与激活 安装office 目前微软官方2022似乎暂未发布,官网一阵子再看看改文章,暂时使用2021 office安装工具 office 2013 ...
- 打造前端 Deepin Linux 工作环境——安装最新版本的火狐firefox浏览器
打造前端 Deepin Linux 工作环境--安装最新版本的火狐firefox浏览器 尝试使用 apt-get 命令安装火狐浏览器,但是,居然是 55 的版本,而最新的已经是 56 了.当然,这并不 ...
- Linux:安装最新版本R + Rstudio成功使用最新R
手把手教你如何在 Linux 上源码安装最新版本 R 下载 R 下载最新版本R(R-4.0.4.tar.gz) 解压后,在 /R-4.0.4目录下运行 $CFLAGS="-O3 -fPIC& ...
最新文章
- python读取文件r_python read文件的r和rb的区别
- 自动化运维工具Saltstack(一)
- 网络流—Edmonds-Karp 最短增广路算法(最大流)
- ListView通过自定义的Adapter实现异步下载显示网络图片
- rpm 使用手册 (谷歌翻译)
- python3 psutil模块 进程和系统信息
- Xen 启动客户虚拟机的过程分析
- 计算机室活动实施方案,微机室活动计划
- 春天里:丁丁与赵亚楠
- Springmvc Bootstrap Ajax项目
- SAP S/4HANA里如何创建Customer主数据以及执行后续处理
- 牛客网【每日一题】5月27日题目精讲 货币系统
- 前端学习(1421):ajax请求参数的格式类型
- jsr 正则验证_Java数据校验(Bean Validation / JSR303)
- 平时碰到的一些编程题
- JavaScript 基本类型的装箱与拆箱
- 图像识别-百度AI开放平台
- wex5使用java语言_WeX5学习笔记之调用后端服务
- android 解决usb网络共享,wifi热点能连不能用,手机wifi网络通过USB共享给电脑?
- Android AppWidget控制手机上网APN接入点
热门文章
- php 挂qq,挂QQ的网页源代码[ASP/PHP/JS]
- vue 引入json地图_vue中echarts引入中国地图的案例
- 6月26日科技资讯|华为获首张 5G 终端进网许可证;Linux 之父来华;Eclipse 4.12 发布
- 英伟达Nvidia TX1 TX2 串口通信方法
- 信息化监理在验收阶段的角色
- 第一次重装纯净版windows系统,保姆级教程用U盘启动,不限U盘大小,win7,win10,win11
- Mysql根据身份证更新出生日期及年龄sql语句
- cc2430/cc2530驱动安装不正确
- 基于XMPP的IOS聊天客户端程序(IOS端二)
- 李恒君 导演创作 影视制作导演进阶课程 学后心得