1 發(fā)包
(1)nc(netcat)發(fā)包
nc [-hlnruz][-g<網(wǎng)關(guān)...>][-G<指向器數(shù)目>][-i<延遲秒數(shù)>][-o<輸出文件>][-p<通信端口>][-s<來(lái)源位址 >][-v...][-w<超時(shí)秒數(shù)>][主機(jī)名稱][通信端口...]
常用的幾個(gè)參數(shù)詳解
-u 使用UDP傳輸協(xié)議。
TCP端口掃描實(shí)例
nc -v -z -w2 baidu.com 80
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif en0
src 192.168.50.8 port 61874
dst 220.181.57.216 port 80
rank info not available
TCP aux info available
(2)curl發(fā)包
2 抓包
(1)利用tcpdump抓包
(2)利用wireshark抓包
3 分析TCP頭
4 分析IP頭