Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread Stephen Donnelly
On Mon, 2008-09-22 at 18:18 +0400, Dmitry wrote: > Yeah! You´re right! > > Dumping packets via tcpdump to file, I can choose packet and cut out payload > starting from 0x0042 > Therefore It could be done via dd utility and some scripting avoiding > libpcap. > > Via tcpflow I can dump sessions. Th

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread Dmitry
Yeah! You´re right! Dumping packets via tcpdump to file, I can choose packet and cut out payload starting from 0x0042 Therefore It could be done via dd utility and some scripting avoiding libpcap. Via tcpflow I can dump sessions. That´s more convenient. Thanks in advance! It would be better to

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread marco
> And now my question is: > can tcpdump extract payloads from packets, or it just extracting headers? No, tcpdump by itself can't. But that's what tcpflow does. Regards, Marco. - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscr

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread Dmitry
Thank you. I´ll try. I think, I found what´s going on. I´ve read manual more accurately and found, that -w key writes WHOLE packets, NOT payloads. And now my question is: can tcpdump extract payloads from packets, or it just extracting headers? Dmitry. > You might want to look at tcpflow: > ht

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread Dmitry
Hm, did´nt help. Dmitry. On 9/16/08, Arien Vijn <[EMAIL PROTECTED]> wrote: > > On 15 sep 2008, at 23:05, Dmitry wrote: > >> Hello. >> I'm interesting in info extraction from pcap dumps. >> Recently I did some test dump of downloaded picture with tcpdump and >> wrote >> it to file 'dump.pcap'. >>

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread marco
> By ´raw´ data I mean collected binary data from the payloads. > Wireshark does correctly restore binary stream from payloads. > I don´t know how to do this via tcpdump (if it possible off course) You might want to look at tcpflow: http://www.circlemud.org/~jelson/software/tcpflow/

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-22 Thread Dmitry
By ´raw´ data I mean collected binary data from the payloads. Wireshark does correctly restore binary stream from payloads. I don´t know how to do this via tcpdump (if it possible off course) I did extract HTTP reply as binary stream. Divided it with hexedit to text data (header) and binary data (

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-15 Thread Arien Vijn
On 15 sep 2008, at 23:05, Dmitry wrote: Hello. I'm interesting in info extraction from pcap dumps. Recently I did some test dump of downloaded picture with tcpdump and wrote it to file 'dump.pcap'. Test zero: I have started capture on 192.168.0.1 host and did http request of image to 192

Re: [tcpdump-workers] tcpdump and wireshark

2008-09-15 Thread Guy Harris
On Sep 15, 2008, at 2:05 PM, Dmitry wrote: Test one: I've opened dump with wireshark. Found stream, filtered it out and saved raw data to file 'dump.hex' What do you mean by "raw data"? Do you mean raw *binary* data, or raw data as a hex dump? And did you save the raw contents of the pac

[tcpdump-workers] tcpdump and wireshark

2008-09-15 Thread Dmitry
Hello. I'm interesting in info extraction from pcap dumps. Recently I did some test dump of downloaded picture with tcpdump and wrote it to file 'dump.pcap'. Test zero: I have started capture on 192.168.0.1 host and did http request of image to 192.168.0.2 Nothing else dropped to dump except arp r