skyknight has asked for the wisdom of the Perl Monks concerning the following question:
I have a packet dump of an ISO file being sent over an HTTP request, and I would like to reconstruct the actual image. I am familiar with the Net::Pcap and NetPacket::* modules and have used them for extracting other statistical data from the stream, but there is no readily apparent way to take the TCP conversation that I have and translate it into the resultant file as it would have been reassambled on the end host. Are there any good libraries for accomplishing this task?
Update: I managed to successfully extract the HTTP conversation using tcpflow, and then to extract the ISO from that by writing a simple Perl script to strip off the leading headers. The recovered ISO seems to be good. Thanks to kvale for the tip.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reconstructing a file from a packet dump
by kvale (Monsignor) on Mar 29, 2004 at 16:35 UTC | |
by skyknight (Hermit) on Mar 29, 2004 at 16:56 UTC | |
by traveler (Parson) on Mar 29, 2004 at 19:02 UTC | |
by skyknight (Hermit) on Apr 12, 2004 at 16:04 UTC | |
|
Re: Reconstructing a file from a packet dump
by Fletch (Bishop) on Mar 29, 2004 at 18:03 UTC | |
by skyknight (Hermit) on Mar 29, 2004 at 18:14 UTC |