在Linux系統中nmap掃描工具的使用

來源:互聯網
上載者:User

nmap是一個網路連接端掃描軟體,用來掃描網上電腦開放的網路連接端。確定哪些服務運行在哪些串連端,並且推斷電腦運行哪個作業系統。它是網路系統管理員必用的軟體之一,以及用以評估網路系統安全。在工作中常用的nmap命令如下:

1.安裝nmap軟體
[root@CentOS yum.repos.d]# yum install nmap
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nmap.i686 2:5.51-2.el6 will be installed
--> Processing Dependency: libpcap.so.1 for package: 2:nmap-5.51-2.el6.i686
--> Running transaction check
---> Package libpcap.i686 14:1.0.0-6.20091201git117cb5.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package                Arch                Version                                            Repository              Size
=============================================================================================================================
Installing:
nmap                  i686                2:5.51-2.el6                                      c6-media                2.7 M
Installing for dependencies:
libpcap                i686                14:1.0.0-6.20091201git117cb5.el6                  c6-media                125 k
Transaction Summary
=============================================================================================================================
Install      2 Package(s)
Total download size: 2.9 M
Installed size: 10 M
Is this ok [y/N]: y    --確定安裝

2.常用選項
          -sT            --TCP協議掃描
          -sS          --TCP同步掃描
          -sP          --用Ping檢測主機是否在運行
          -sU          --UDP連接埠掃描
          -sA          --可以穿透防火牆規則集
          -v            --掃描過程有詳細資料
          -p 連接埠範圍  --掃描指定的連接埠範圍
          -iL 檔案      --可以從檔案中讀取目標
          -oN            --將掃描的結果重寫向到檔案中

3.工具的使用
[root@centos /]# nmap  -sP 192.168.1.0/24    --查看有多少主機在
[root@centos /]# nmap -sT 192.168.1.23  --掃描指定的主機TCP連接埠
[root@centos /]# nmap -sS 192.168.1.23    --SYN掃描IP的tcp和udp連接埠(速度快)
[root@centos /]# nmap -O 192.168.1.23    --查看IP對應的作業系統
[root@centos /]# nmap -A 192.168.1.23    --查看IP對應的詳細作業系統
[root@centos /]# nmap -sA 192.168.1.23  --ACK掃描可穿透防火牆
[root@centos /]# nmap -PS 192.168.1.23  --查看目標主機開放的連接埠
[root@centos /]# nmap -PS -p 21,22,3306 2.2.2.1-100  --查看指定的IP和指定的連接埠

Linux下的連接埠掃描工具nmap

nmap詳解--網路掃描和嗅探工具包

nmap應用技巧

RedHat Enterprise Linux 5 下nmap的一次曲折安裝

Linux中讓nmap命令跟防火牆捉迷藏

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.