Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* need binary file from tcpdump ascii logfile
@ 2002-10-09 12:06 gooze
  2002-10-10 17:33 ` Doc
  0 siblings, 1 reply; 7+ messages in thread
From: gooze @ 2002-10-09 12:06 UTC (permalink / raw)


dear all

i got a tcpdump ascii log file that i have to analize. i would like to
do this with a tool like tcptrace or ethereal. unfortunately these
tools understand just the binary hex file style of the tcpdump output.

is there a way to make a binary tcpdump output file out from the ascii
output file? (next time i will run tcpdump command with the "tcpdump
-w outputfile" instead the "tcpdump > outputfile" option).

thanx for your help in advance


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-09 12:06 need binary file from tcpdump ascii logfile gooze
@ 2002-10-10 17:33 ` Doc
  2002-10-11 11:43   ` gooze
  0 siblings, 1 reply; 7+ messages in thread
From: Doc @ 2002-10-10 17:33 UTC (permalink / raw)


On 9 Oct 2002 05:06:11 -0700, gooze <g000ze@gmx.net> wrote:
> dear all
> 
> i got a tcpdump ascii log file that i have to analize. i would like to
> do this with a tool like tcptrace or ethereal. unfortunately these
> tools understand just the binary hex file style of the tcpdump output.
> 
> is there a way to make a binary tcpdump output file out from the ascii
> output file? (next time i will run tcpdump command with the "tcpdump
> -w outputfile" instead the "tcpdump > outputfile" option).

  "man tcpdump"

> thanx for your help in advance

  You're welcome.

  	Doc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-10 17:33 ` Doc
@ 2002-10-11 11:43   ` gooze
  2002-10-11 18:10     ` tedu
  2002-10-11 21:39     ` Doc
  0 siblings, 2 replies; 7+ messages in thread
From: gooze @ 2002-10-11 11:43 UTC (permalink / raw)


Doc <doc@elsewhere.com> wrote in message news:<slrnaqbef6.dtv.doc@george.home.org>...
> On 9 Oct 2002 05:06:11 -0700, gooze <g000ze@gmx.net> wrote:
> > dear all
> > 
> > i got a tcpdump ascii log file that i have to analize. i would like to
> > do this with a tool like tcptrace or ethereal. unfortunately these
> > tools understand just the binary hex file style of the tcpdump output.
> > 
> > is there a way to make a binary tcpdump output file out from the ascii
> > output file? (next time i will run tcpdump command with the "tcpdump
> > -w outputfile" instead the "tcpdump > outputfile" option).
> 
>   "man tcpdump"
> 
> > thanx for your help in advance
> 
>   You're welcome.
> 
>   	Doc


oh, thanx a lot mr. smart. can you give me the exact line number where
this feature of tcpdump is explained? hope you are not searching for
10 hours. smile


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-11 11:43   ` gooze
@ 2002-10-11 18:10     ` tedu
  2002-10-11 18:26       ` Barry Margolin
  2002-10-11 21:39     ` Doc
  1 sibling, 1 reply; 7+ messages in thread
From: tedu @ 2002-10-11 18:10 UTC (permalink / raw)


On 11 Oct 2002, gooze wrote:

> > > is there a way to make a binary tcpdump output file out from the ascii
> > > output file? (next time i will run tcpdump command with the "tcpdump
> > > -w outputfile" instead the "tcpdump > outputfile" option).
> >
> >   "man tcpdump"

not in my manpage.  you might want to read it yourself.

> oh, thanx a lot mr. smart. can you give me the exact line number where
> this feature of tcpdump is explained? hope you are not searching for
> 10 hours. smile

I don't think he'll find it either.  I doubt it's possible, because a lot
of information has been lost by printing the text.  You can't reconstruct
the binary packets again.


--
Mediocrity is a sin.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-11 18:10     ` tedu
@ 2002-10-11 18:26       ` Barry Margolin
  0 siblings, 0 replies; 7+ messages in thread
From: Barry Margolin @ 2002-10-11 18:26 UTC (permalink / raw)


In article <Pine.BSO.4.44.0210111106510.1368-100000@heorot.Stanford.EDU>,
tedu  <grendel@zeitbombe.org> wrote:
>I don't think he'll find it either.  I doubt it's possible, because a lot
>of information has been lost by printing the text.  You can't reconstruct
>the binary packets again.

Agreed.  It would be like trying to reproduce Hamlet from the Cliff's
Notes.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-11 11:43   ` gooze
  2002-10-11 18:10     ` tedu
@ 2002-10-11 21:39     ` Doc
  2002-10-14  8:36       ` gooze
  1 sibling, 1 reply; 7+ messages in thread
From: Doc @ 2002-10-11 21:39 UTC (permalink / raw)


On 11 Oct 2002 04:43:28 -0700, gooze <g000ze@gmx.net> wrote:
> Doc <doc@elsewhere.com> wrote in message news:<slrnaqbef6.dtv.doc@george.home.org>...
>> On 9 Oct 2002 05:06:11 -0700, gooze <g000ze@gmx.net> wrote:
>> > is there a way to make a binary tcpdump output file out from the ascii
>> > output file? (next time i will run tcpdump command with the "tcpdump
>> > -w outputfile" instead the "tcpdump > outputfile" option).
>> 
>>   "man tcpdump"
> 
> oh, thanx a lot mr. smart. can you give me the exact line number where
> this feature of tcpdump is explained? hope you are not searching for
> 10 hours. smile

  My bad, and my apologies.  First reading missed that you already _have_ 
the ascii file.  I was referring to the "-w" option. 
  You're pretty much stuck with a visual analysis, AFAIK.  You might be able
to use sed or grep to extract what's relevant.

	Doc


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: need binary file from tcpdump ascii logfile
  2002-10-11 21:39     ` Doc
@ 2002-10-14  8:36       ` gooze
  0 siblings, 0 replies; 7+ messages in thread
From: gooze @ 2002-10-14  8:36 UTC (permalink / raw)


Doc <doc@elsewhere.com> wrote in message news:<slrnaqeh9a.vri.doc@george.home.org>...
> On 11 Oct 2002 04:43:28 -0700, gooze <g000ze@gmx.net> wrote:
> > Doc <doc@elsewhere.com> wrote in message news:<slrnaqbef6.dtv.doc@george.home.org>...
> >> On 9 Oct 2002 05:06:11 -0700, gooze <g000ze@gmx.net> wrote:
> >> > is there a way to make a binary tcpdump output file out from the ascii
> >> > output file? (next time i will run tcpdump command with the "tcpdump
> >> > -w outputfile" instead the "tcpdump > outputfile" option).
> >> 
> >>   "man tcpdump"
> > 
> > oh, thanx a lot mr. smart. can you give me the exact line number where
> > this feature of tcpdump is explained? hope you are not searching for
> > 10 hours. smile
> 
>   My bad, and my apologies.  First reading missed that you already _have_ 
> the ascii file.  I was referring to the "-w" option. 
>   You're pretty much stuck with a visual analysis, AFAIK.  You might be able
> to use sed or grep to extract what's relevant.
> 
> 	Doc



thank you all for your messages. that confirms what i was actually
worrying about. there is no way to reconstruct a binary file from an
ascii file. what a pitti. i will try to help myself with sed, grep and
awk

cheers, gooze


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-10-14  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-09 12:06 need binary file from tcpdump ascii logfile gooze
2002-10-10 17:33 ` Doc
2002-10-11 11:43   ` gooze
2002-10-11 18:10     ` tedu
2002-10-11 18:26       ` Barry Margolin
2002-10-11 21:39     ` Doc
2002-10-14  8:36       ` gooze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox