ubuntu18.04安装nmap
NMAP
下载nmap
下载地址:https://nmap.org/download.html

2.安装
解压 nmap-7.94.tar.bz2压缩包
cd nmap-7.94 sudo ./configure sudo make sudo su root sudo make install
安装成功

3、TCP扫描
nmap -sS -p 1-65535 192.168.222.x

3、UDP扫描
UDP扫描,因全局udp扫描过慢,可以先通过netstat -unlp查找开放的udp端口[全局扫描nmap -sU 192.168.222.x]
再用nmap进行扫描。nmap -sU 192.168.222.x -p 6060,5038,5060,2588,2589,123,3000,9000,443
报错处理
sudo make
libtool: install: chmod 644 /home/sugh/nmap-7.95/libssh2/lib/libssh2.a libtool: install: ranlib /home/sugh/nmap-7.95/libssh2/lib/libssh2.a libtool: warning: remember to run 'libtool --finish /usr/local/lib' make[1]: 离开目录“/home/sugh/nmap-7.95/libssh2/src” Compiling libpcre make[1]: 进入目录“/home/sugh/nmap-7.95/libpcre” CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash '/home/sugh/nmap-7.95/libpcre/missing' aclocal-1.16 -I m4 /home/sugh/nmap-7.95/libpcre/missing: 行 81: aclocal-1.16:未找到命令 WARNING: 'aclocal-1.16' is missing on your system. You should only need it if you modified 'acinclude.m4' or 'configure.ac' or m4 files included by 'configure.ac'. The 'aclocal' program is part of the GNU Automake package: <https://www.gnu.org/software/automake> It also requires GNU Autoconf, GNU m4 and Perl in order to run: <https://www.gnu.org/software/autoconf> <https://www.gnu.org/software/m4/> <https://www.perl.org/> make[1]: *** [Makefile:1023:aclocal.m4] 错误 127 make[1]: 离开目录“/home/sugh/nmap-7.95/libpcre” make: *** [Makefile:135:build-pcre] 错误 2
这个警告信息表明你的系统中缺少名为 aclocal-1.16 的工具。aclocal 是一个用来生成autoconf需要的aclocal.m4文件的工具,它是自动配置工具的一部分,常用于编译和安装软件源代码包。
解决方法:
你需要安装libtool和automake。在基于Debian或Ubuntu的系统上,你可以使用以下命令安装它们:
sudo apt-get update
sudo apt-get install libtool automake
Zenmap安装
在终端ubuntu终端安装命令:
sudo apt-get install -y zenmap
Zenmap 需要以 root 用户运行:
$sudo zenmap
浙公网安备 33010602011771号