手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

[日期:2019-08-15] 来源:Linux公社  作者:醉落红尘 [字体: ]

Nmap 7.80已经发布。什么是Nmap? Nmap(Network Mapper)是一个免费的开源实用程序,用于网络发现和安全审计。它对于网络清单,管理服务升级计划以及监视主机或服务正常运行时间等任务非常有用。 Nmap以新颖的方式使用原始IP数据包来确定网络上可用的主机,这些主机提供的服务(应用程序名称和版本),运行的操作系统(和操作系统版本),数据包过滤器/防火墙的类型正在使用中,还有许多其他特性。

它旨在快速扫描大型网络,但对单个主机可以正常工作。 Nmap可在所有主要计算机操作系统上运行,官方二进制包可用于Linux,Windows和Mac OS X.除了经典的命令行Nmap可执行文件外,Nmap套件还包括一个高级GUI和结果查看器(Zenmap),灵活的数据传输,重定向和调试工具(Ncat),用于比较扫描结果的实用程序(Ndiff),以及数据包生成和响应分析工具(Nping)。

Nmap甚至出现在12部电影中,包括The Matrix Reloaded,Die Hard 4,Girl with the Dragon Tattoo和The Bourne Ultimatum。

Nmap灵活,强大,便携,免费,广受赞誉,支持,受欢迎

灵活:支持数十种先进技术,用于映射充满IP过滤器,防火墙,路由器和其他障碍的网络。这包括许多端口扫描机制(包括TCP和UDP),操作系统检测,版本检测,ping扫描等。请参阅文档页面。

功能强大:Nmap已被用于扫描数十万台机器的庞大网络。

便携式:支持大多数操作系统,包括Linux,Microsoft Windows,FreeBSD,OpenBSD,Solaris,IRIX,Mac OS X,HP-UX,NetBSD,Sun OS,Amiga等。

简单:虽然Nmap为高级用户提供了丰富的高级功能,但您可以像“nmap -v -A targethost”一样开始。传统的命令行和图形(GUI)版本都可以满足您的喜好。二进制文件适用于那些不希望从源代码编译Nmap的人。

免费:Nmap项目的主要目标是帮助使互联网更安全,并为管理员/审计员/黑客提供探索其网络的高级工具。 Nmap可以免费下载,还附带完整的源代码,您可以根据许可条款修改和重新分发。

记录良好:已经为全面和最新的手册页,白皮书,教程甚至整本书付出了巨大的努力!在这里找到多种语言的文章。

支持:虽然Nmap没有保修,但它得到了充满活力的开发人员和用户社区的支持。大多数此类交互发生在Nmap邮件列表中。大多数错误报告和问题应该发送到nmap-dev列表,但只有在您阅读了指南之后。我们建议所有用户订阅低流量的nmap-hackers公告列表。您还可以在Facebook和Twitter上找到Nmap。对于实时聊天,请加入Freenode或EFNet上的#nmap频道。

备受好评:Nmap赢得了众多奖项,包括Linux Journal,Info World和Codetalker Digest的“年度信息安全产品”。它已经出现在数百种杂志文章,几部电影,几十本书和一本漫画书系列中。访问新闻页面了解更多详情。

热门:每天都有成千上万的人下载Nmap,它包含在许多操作系统中(RedHat Linux,Debian Linux,Gentoo,FreeBSD,OpenBSD等)。它是Freshmeat.Net存储库中十大(30,000个)程序之一。这很重要,因为它为Nmap提供了充满活力的开发和用户支持社区。

如何在Redhat,Mandrake,SUSE Linux等上安装Nmap 7.80 ...(使用RPM系统)

使用RPM包管理系统来快速轻松地进行二进制包安装。

启动终端窗口并在终端中逐步键入以下代码(将其复制粘贴到终端上)

对于64位

rpm -vhU https://nmap.org/dist/nmap-7.80-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/zenmap-7.80-1.noarch.rpm
rpm -vhU https://nmap.org/dist/ncat-7.80-1.x86_64.rpm
rpm -vhU https://nmap.org/dist/nping-0.7.80-1.x86_64.rpm

对于32位
rpm -vhU https://nmap.org/dist/nmap-7.80-1.i686.rpm
rpm -vhU https://nmap.org/dist/zenmap-7.80-1.noarch.rpm
rpm -vhU https://nmap.org/dist/ncat-7.80-1.i686.rpm
rpm -vhU https://nmap.org/dist/nping-0.7.80-1.i686.rpm

如何使用源代码安装Nmap 7.80

启动终端窗口并在终端中逐步键入以下代码(将其复制粘贴到终端上)

下载最新的Nmap:nmap-7.80.tar.bz2 或 gzip compressed

bzip2 -cd nmap-7.80.tar.bz2 | tar xvf -
cd nmap-7.80
./configure
make
su root
make install

如何在Ubuntu和Linux Mint上安装Nmap 7.80(Ubuntu衍生系统)

启动终端窗口并在终端中逐步键入以下代码(将其复制粘贴到终端上)

wget https://nmap.org/dist/nmap-7.80.tar.bz2
bzip2 -cd nmap-7.80.tar.bz2 | tar xvf -
cd nmap-7.80
./configure
make
sudo su
make install

实际安装摘录:

linuxidc@linuxidc:~/www.linuxidc.com/nmap-7.80$ ./configure
checking whether NLS is requested... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for inline... inline
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

这一步最后提示:

错误提示

configure: error: Neither flex nor lex was found.
configure: error: ./configure failed for libpcap

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

解决方法如下:

linuxidc@linuxidc:~/www.linuxidc.com/nmap-7.80$ sudo apt install flex bison
[sudo] linuxidc 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树     
正在读取状态信息... 完成     
下列软件包是自动安装的并且现在不需要了:
  libllvm7 Python-appindicator
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:
  libbison-dev libfl-dev libfl2
建议安装:
  bison-doc flex-doc
下列【新】软件包将被安装:
  bison flex libbison-dev libfl-dev libfl2
升级了 0 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 65 个软件包未被升级。
需要下载 938 kB 的归档。
解压缩后会消耗 2,925 kB 的额外空间。
您希望继续执行吗? [Y/n]

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

然后重新./configure,正确无误后最后出现如下图所示:

......
config.status: creating Makefile
config.status: creating config.h
            .       .
            \`-"'"-'/
             } 6 6 {
            ==. Y ,==
              /^^^\  .
             /     \  )  Ncat: A modern interpretation of classic Netcat
            (  )-(  )/
            -""---""---   /
           /   Ncat    \_/
          (     ____
           \_.=|____E
Configuration complete.

          :================:
         /||# nmap -A _   ||
        / ||              ||
       |  ||              ||
        \ ||              ||
          ==================
   ........... /      \.............
   :\        ############            \
   : ---------------------------------
   : |  *   |__________|| ::::::::::  |
   \ |      |          ||   .......   |
     --------------------------------- 8

  NMAP IS A POWERFUL TOOL -- USE CAREFULLY AND RESPONSIBLY
Configured with: ndiff zenmap nping openssl zlib libssh2 lua ncat
Configured without: localdirs nmap-update
Type make (or gmake on some *BSD machines) to compile.

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

然后开始 make

linuxidc@linuxidc:~/www.linuxidc.com/nmap-7.80$ make
Compiling libnetutil
cd libnetutil && make
make[1]: 进入目录“/home/linuxidc/www.linuxidc.com/nmap-7.80/libnetutil”
g++ -c -I../liblinear -I../liblua -I../libdnet-stripped/include -I../libssh2/include  -I../libpcap -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing netutil.cc -o netutil.o
g++ -c -I../liblinear -I../liblua -I../libdnet-stripped/include -I../libssh2/include  -I../libpcap -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing PacketElement.cc -o PacketElement.o
g++ -c -I../liblinear -I../liblua -I../libdnet-stripped/include -I../libssh2/include  -I../libpcap -I../nbase -I../nsock/include -DHAVE_CONFIG_H -D_FORTIFY_SOURCE=2 -g -O2 -Wall -fno-strict-aliasing NetworkLayerElement.cc -o NetworkLayerElement.o

......

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

最后

sudo su
make install

查看版本:

nmap -v

如何在Ubuntu,Fedora,Redhat,SUSE Linux上安装Nmap 7.80

Nmap 7.80 发布,新的Npcap Windows数据包捕获驱动  https://www.linuxidc.com/Linux/2019-08/160067.htm

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

本文永久更新链接地址https://www.linuxidc.com/Linux/2019-08/160068.htm

linux
相关资讯       NMAP  Nmap 7.80  Linux安装Nmap 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款