开发者

How do I get Wireshark to read header-less pcap files without a UDP/IP/Ethernet header?

开发者 https://www.devze.com 2023-01-31 11:19 出处:网络
Does Wireshark support a format that doesn\'t require TCP/UDP/Ethernet he开发者_开发知识库aders in every packet?

Does Wireshark support a format that doesn't require TCP/UDP/Ethernet he开发者_开发知识库aders in every packet?

Any other (non-pcap) formats wireshark supports would be appreciated. I need to get header-less data into wireshark for further examination.


Apparently this IS possible with newer versions. See their How To Dissect Anything wiki entry.

Basically, in the pcap header you set the network linktype DLT to USER DLT #147 decimal. Pcap files are simple to create.

Then in wireshark Edit->Preferences->Protocols->DLT_USER->Edit Encapsulations Table, fill in the GUI dialog. And voila! it parses raw packets.

UPDATE: This doesn't support some protocols (like DNS). But you can possibly append fake headers using text2pcap (development version as of Dec-2010).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号