人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動態(tài)

nmap常用命令及參數(shù)說明

發(fā)布日期:2021-12-22 10:55 | 文章來源:CSDN
nmap是一個網(wǎng)絡(luò)探測和安全掃描程序,系統(tǒng)管理者和個人可以使用這個軟件掃描大型的網(wǎng)絡(luò),獲取被掃描主機正在運行以及提供什么服務(wù)等信息。 nmap支持很多掃描技術(shù),例如:UDP、TCP connect()、TCP SYN(半開掃描)、ftp代理(bounce攻擊)、反向標(biāo)志、ICMP、FIN、ACK掃描、圣誕樹(Xmas Tree)、SYN掃描和null掃描。從掃描類型一節(jié)可以得到細(xì)節(jié)。nmap還提供了一些高級的特征,例如:通過TCP/IP協(xié)議棧特征探測操作系統(tǒng)類型,秘密掃描,動態(tài)延時和重傳計算,并行掃描,通過并行ping掃描探測關(guān)閉的主機,誘餌掃描,避開端口過濾檢測,直接RPC掃描(無須端口影射),碎片掃描,以及靈活的目標(biāo)和端口設(shè)定。本文詳細(xì)介紹了NMap的詳細(xì)使用選項,并給出了幾個實用實例,nmap是入侵和網(wǎng)絡(luò)安全檢測的必備工具。

nmap
BT5(BackTrack--Information Gathering--Network Analysis--Network Scanners-nmap)
-sP 滲透內(nèi)網(wǎng)之后判斷當(dāng)前網(wǎng)絡(luò)那些主機在線
nmap -sP 192.168.1/255

-vv 現(xiàn)實詳細(xì)的掃描過程
-sS 使用SYN半開式掃描,這種掃描方式使得掃描結(jié)果更加正確(又稱半開放,或
隱身掃描)
nmap -vv -sS IP
-O 大寫O代表OS 判斷主機操作系統(tǒng)
nmap -O IP
延時策略
-T(0-5) 默認(rèn)為3
0 即Paranoid模式。為了避開IDS的檢測使掃描速度極慢,nmap串所有的掃描,
每隔至少5分鐘發(fā)送一個包
1 即Sneaky模式。也差不多,只是數(shù)據(jù)包的發(fā)送間隔是15秒
2 即Polite模式。不增加太大的網(wǎng)絡(luò)負(fù)載,串行每個探測,并使每個探測間隔
0.4秒
3 即Normal模式。nmap的默認(rèn)選項,在不使網(wǎng)絡(luò)過載或者主機/端口丟失的情況
下盡可能快速地掃描
4 即Aggressive模式。設(shè)置5分鐘的超時限制,對每臺主機的掃描時間不超過5分
鐘,并且對每次探測回應(yīng)的等待時間不超過1.5秒。
5 即lnsane模式。只適合快速的網(wǎng)絡(luò)或者不在意丟失默些信息,每臺主機的超時
限制為75秒,對每次探測只等待0.3秒。
nmap -sS -T1 IP

-sV 探測端口的服務(wù)類型/具體版本等信息
nmap -vv -sV IP
-p 端口號 對某個端口的服務(wù)版本進(jìn)行詳細(xì)探測 有助于升入的針對性攻擊,
比如緩沖溢出攻擊
nmap -vv -sV IP -p 21

適用于內(nèi)外網(wǎng)的探測,以內(nèi)網(wǎng)操作為示例(外網(wǎng)參數(shù)同)
  
簡單端口掃描: nmap -vv -sT(sS、sF、sU、sA) 192.168.0.1 -D 127.0.0.1
(-D偽造的地址)
  
OS檢測: nmap -vv -sS -O 192.168.0.1
  
RPC鑒別: nmap -sS -sR 192.168.0.1 Linux上的portmap就是一個簡單的RPC服
務(wù),監(jiān)聽端口為111(默認(rèn))
Ping掃射:nmap -sP 172.16.15.0/24

十條常用nmap命令行格式

1)獲取遠(yuǎn)程主機的系統(tǒng)類型及開放端口
Get info about remote host ports and OS detection
nmap -sS -P0 -sV -O <target>
這里的 < target > 可以是單一 IP, 或主機名,或域名,或子網(wǎng)
-sS TCP SYN 掃描 (又稱半開放,或隱身掃描)
-P0 允許你關(guān)閉 ICMP pings.
-sV 打開系統(tǒng)版本檢測
-O 嘗試識別遠(yuǎn)程操作系統(tǒng)
-sS TCP SYN scanning (also known as half-open, or stealth scanning)
-P0 option allows you to switch off ICMP pings.
-sV option enables version detection
-O flag attempt to identify the remote operating system
Other option:
-A 同時啟用操作系統(tǒng)指紋識別和版本檢測
-A option enables both OS fingerprinting and version detection
-v use -v twice for more verbosity.
nmap -sS -P0 -A -v < target >
2)列出開放了指定端口的主機列表
Get list of servers with a specific port open
nmap -sT -p 80 -oG – 192.168.1.* | grep open
Change the -p argument for the port number. See “man nmap” for
different ways to specify address ranges.
3)在網(wǎng)絡(luò)尋找所有在線主機
Find all active IP addresses in a network
nmap -sP 192.168.0.*
或者也可用以下命令:
nmap -sP 192.168.0.0/24
指定 subnet

4)Ping 指定范圍內(nèi)的 IP 地址
Ping a range of IP addresses
nmap -sP 192.168.1.100-254
nmap accepts a wide variety of addressing notation, multiple
targets/ranges, etc.
5)在某段子網(wǎng)上查找未占用的 IP
Find unused IPs on a given subnet
nmap -T4 -sP 192.168.2.0/24 && egrep "00:00:00:00:00:00" /proc/net/arp
6)在局域網(wǎng)上掃找 Conficker 蠕蟲病毒
Scan for the Conficker virus on your LAN ect.
nmap -PN -T4 -p139,445 -n -v –script=smb-check-vulns –script-args
safe=1 192.168.0.1-254
replace 192.168.0.1-256 with the IP’s you want to check.
7)掃描網(wǎng)絡(luò)上的惡意接入點 rogue APs.
Scan Network for Rogue APs.
nmap -A -p1-85,113,443,8080-8100 -T4 –min-hostgroup 50 –max-rtt-
timeout 2000 –initial-rtt-timeout 300 –max-retries 3 –host-timeout
20m –max-scan-delay 1000 -oA wapscan 10.0.0.0/8
I’ve used this scan to successfully find many rogue APs on a very,
very large network.
8)使用誘餌掃描方法來掃描主機端口
Use a decoy while scanning ports to avoid getting caught by the sys
admin
sudo nmap -sS 192.168.0.10 -D 192.168.0.2
Scan for open ports on the target device/computer (192.168.0.10) while
setting up a decoy address (192.168.0.2). This will show the decoy ip
address instead of your ip in targets security logs. Decoy address
needs to be alive. Check the targets security log at /var/log/secure
to make sure it worked.

9)為一個子網(wǎng)列出反向 DNS 記錄
List of reverse DNS records for a subnet
nmap -R -sL 209.85.229.99/27 | awk '{if($3=="not")print"("$2") no
PTR";else print$3" is "$2}' | grep '('

10)顯示網(wǎng)絡(luò)上共有多少臺 Linux 及 Win 設(shè)備?
How Many Linux And Windows Devices Are On Your Network?
sudo nmap -F -O 192.168.1.1-255 | grep "Running: " > /tmp/os; echo
"$(cat /tmp/os | grep Linux | wc -l) Linux device(s)"; echo "$(cat
/tmp/os | grep Windows | wc -l) Window(s) devices"

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實時開通

自選配置、實時開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時在線

客服
熱線

400-630-3752
7*24小時客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部