簡單範例 text2pcap,wireshark 付屬程式

 

man text2pcap

 

讀十六進制檔,寫出 libpcap 檔

text2pcap hex_sample.txt libpcap_output

讀十六進制檔,寫出 Telnet/TCP (源端口1297,目地端口23)格式 libpcap 檔

text2pcap -T 1297,23 hex_sample2.txt libpcap_output2

 從 od 輸出輸入,引用最大一四六零字節(乙太封包一千五字節减掉 IP,TCP 封包頭各二十字節),使用虛拟 TCP,IP,乙太封包頭,寫至 output.cap 檔

od -Ax -tx1 input | text2pcap -m1460 -T1234,80 -output.pcap

 

 

 

 

Etherreal Packet Sniffing, Angela Orebaugh

 

你可能感兴趣的:(wireshark,libpcap,mergecap,text2pcap,editcap)