Linux centos7 NMAP網絡探測工具安裝過程以及使用示例!

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章