欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到云服務(wù)器

網(wǎng)絡(luò)技術(shù)

Nmap命令實用參數(shù)分享

nmap是一個網(wǎng)絡(luò)探測和安全掃描程序,系統(tǒng)管理者和個人可以使用這個軟件掃描大型的網(wǎng)絡(luò),獲取被掃描主機(jī)正在運行以及提供什么服務(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)閉的主機(jī),誘餌掃描,避開端口過濾檢測,直接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ò)那些主機(jī)在線

nmap -sP 192.168.1/255

-vv 現(xiàn)實詳細(xì)的掃描過程

-sS 使用SYN半開式掃描,這種掃描方式使得掃描結(jié)果更加正確(又稱半開放,或

隱身掃描)

nmap -vv -sS IP

-O 大寫O代表OS 判斷主機(jī)操作系統(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ò)過載或者主機(jī)/端口丟失的情況

下盡可能快速地掃描

4 即Aggressive模式。設(shè)置5分鐘的超時限制,對每臺主機(jī)的掃描時間不超過5分

鐘,并且對每次探測回應(yīng)的等待時間不超過1.5秒。

5 即lnsane模式。只適合快速的網(wǎng)絡(luò)或者不在意丟失默些信息,每臺主機(jī)的超時

限制為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)程主機(jī)的系統(tǒng)類型及開放端口

Get info about remote host ports and OS detection

nmap -sS -P0 -sV -O <target>

這里的 < target > 可以是單一 IP, 或主機(jī)名,或域名,或子網(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)列出開放了指定端口的主機(jī)列表

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ò)尋找所有在線主機(jī)

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)使用誘餌掃描方法來掃描主機(jī)端口

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"

騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國外vps服務(wù)器租用 夢飛云服務(wù)器租用 版權(quán)所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 曲水县| 凤阳县| 亳州市| 邓州市| 巫溪县| 嘉祥县| 荥经县| 西丰县| 望江县| 监利县| 长泰县| 金湖县| 什邡市| 渝北区| 鹤岗市| 吴川市| 新平| 加查县| 内丘县| 丽水市| 怀柔区| 山丹县| 滕州市| 秦安县| 左云县| 孝感市| 龙山县| 于田县| 沙湾县| 七台河市| 邓州市| 多伦县| 嵊州市| 扶风县| 正镶白旗| 雷山县| 鄱阳县| 额敏县| 凤翔县| 桑植县| 清水县|