Linux centos7 NMAP网络探测工具安装过程以及使用示例!

版权声明:转载请声明原文链接地址,谢谢! https://blog.csdn.net/weixin_42859280/article/details/85090043

NMAP网络探测工具
1、nmap安装
RZ上传!
在这里插入图片描述
解压:
tar jxvf nmap-7.60.tar.bz2
在这里插入图片描述
配置:

./configure

出现了一个小火龙!
在这里插入图片描述
编译:

make

在这里插入图片描述
再安装gcc-c++!

yum install gcc-c++

OK:
在这里插入图片描述
安装:

make install

在这里插入图片描述
2、nmap典型扫描(使用1级扫描)

nmap 192.168.159.1

在这里插入图片描述
3、nmap主机发现扫描(使用icmp echo、TCP SYN、TCP ACK、UDP、IP协议包扫描)

namp -sn -PE -PS22,80 -PU53 www.abc.com

在这里插入图片描述
4、nmap端口发现扫描(使用TCP SYN、Connect()、ACk、UDP、TCP Null、FIN方式扫描)
这个要是想写网址的话,你的host文件里要有映射!

nmap -sU -sS -F 192.168.159.1

在这里插入图片描述
5、nmap版本侦测扫描(使用9级版本侦测强度)

nmap -sV 192.168.159.1

在这里插入图片描述
6、nmap操作系统侦测扫描(使用osscan-guess侦测版本,给出版本可能性比例)

nmap -O --osscan-guess 192.168.159.1

在这里插入图片描述

所有命令:

[root@localhost nmap-7.60]# history
    1  cd /etc/yum.repos.d/
    2  wget http://packages.ntop.org/centos/ntop.repo -O ntop.repo
    3  ls
    4  rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    5  rpm -qa | grep zeromq3
    6  yum erase zeromq3
    7  rpm -qa | grep zeromq3
    8  yum install pfring-dkms n2disk nprobe ntopng cento
    9  kill -9 3057
   10  ps
   11  yum install pfring-dkms n2disk nprobe ntopng cento
   12  cd /etc/ntopng/
   13  vim ntopng.conf
   14  service redis start
   15  service ntopng start
   16  service redis start
   17  service ntopng start
   18  service firewalld stop
   19  rz
   20  mkdir /tmp
   21  mkdir /ttt
   22  cp ./nmap-7.60.tar.bz2 /ttt
   23  cd ttt
   24  cd /ttt
   25  ls
   26  tar -zvxf nmap-7.60.tar.bz2 
   27  tar jxvf nmap-7.60.tar.bz2 
   28  ls
   29  cd nmap-7.60/
   30  ls
   31  ./configure 
   32  tar jxvf nmap-7.60.tar.bz2  tar jxvf nmap-7.60.tar.bz2
   33  make
   34  yum install gcc-c++
   35  make
   36  make install
   37  nmap 192.168.159.1
   38  namp -sn -PE -PS22,80 -PU53 www.abc.com
   39  namp -sn -PE -PS22,80 -PU53 www.baidu.com
   40  nmap -sn -PE -PS22,80 -PU53 www.abc.com
   41  nmap -sn -PE -PS22,80 -PU53 www.baidu.com
   42  nmap -sU -sS -F www.abc.com
   43  service firewalld stop
   44  nmap -sU -sS -F www.abc.com
   45  nmap -sU -sS -F www.baidu.com
   46  nmap -sU -sS -F www.abc.com
   47  nmap -sV 192.168.159.1
   48  namp -O --osscan-guess 192.168.159.1
   49  nmap -O --osscan-guess 192.168.159.1
   50  nmap -sU -sS -F www.abc.com
   51  nmap -sU -sS -F 192.168.159.1
   52  history

猜你喜欢

转载自blog.csdn.net/weixin_42859280/article/details/85090043