How to restore data from a pcap file?
I have foll开发者_开发知识库owing file: test_network.pcap: tcpdump capture file (little-endian) - version 2.4 (Ethernet, capture length 65535)
[The file is ~180 GB
]
- Use a Pcap library (libpcap, WinPcap, Pcap.Net)
- Extract the TCP over IP over Ethernet.
- Reconstruct the TCP stream (see Reconstructing data from PCAP sniff).
- Save the TCP stream data to a file.
Try some Pcap TCP reconstruction tools:
http://www.codeproject.com/KB/IP/TcpRecon.aspx
http://code.google.com/p/pcap-reconst/
There are tools developed to achieve your goal, some of these are open source, for example:
- Xplico : Linux and big pcaps files
- NetworkMiner: Windows and Linux
You can check following link for understad pcap specification: PCAP especification
This website could be useful for you: tcpdump.org
Also you can use c++ library: libpcap++
精彩评论