Mailing List Archive

tcptraceroute have buffer overflow in ipv6
tcptraceroute ipv6.google.com 80

shows me a nice buffer overflow, i like to camture it into a log file but
lost on how :/

tryed:
tcptraceroute ipv6.google.com 80 | less

and press s from less to save it, still no file content to save :(
Re: tcptraceroute have buffer overflow in ipv6 [ In reply to ]
On Thu, 14 Apr 2011 13:35:43 Benny Pedersen wrote:
> tcptraceroute ipv6.google.com 80
>
> shows me a nice buffer overflow, i like to camture it into a log file but
> lost on how :/
>
> tryed:
> tcptraceroute ipv6.google.com 80 | less
>
> and press s from less to save it, still no file content to save :(

The usual method is the '>' redirect operator, like this:

tcptraceroute ipv6.google.com 80 > /path/to/log/file

If the error message is going to STDERR (as it should be), you will need to
redirect that instead:

tcptraceroute ipv6.google.com 80 2> /path/to/log/file

To capture both, redirect STDOUT first, then set STDERR to match:

tcptraceroute ipv6.google.com 80 > /path/to/log/file 2>&1


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Asking for technical help in newsgroups? Read this first:
http://catb.org/~esr/faqs/smart-questions.html#intro
Re: tcptraceroute have buffer overflow in ipv6 [ In reply to ]
> To capture both, redirect STDOUT first, then set STDERR to match:
> tcptraceroute ipv6.google.com 80 > /path/to/log/file 2>&1

i end with 2 empty files

would have being usefull if -d have turned stderr over to stdout for debug

what more can i try now ?
Re: tcptraceroute have buffer overflow in ipv6 [ In reply to ]
On Thu, 14 Apr 2011 06:18:09 +0200, Benny Pedersen <me@junc.org> wrote:
>> To capture both, redirect STDOUT first, then set STDERR to match:
>> tcptraceroute ipv6.google.com 80 > /path/to/log/file 2>&1
>
> i end with 2 empty files
>
> would have being usefull if -d have turned stderr over to stdout for
debug
>
> what more can i try now ?

http://bugs.gentoo.org/show_bug.cgi?id=363527
Re: tcptraceroute have buffer overflow in ipv6 [ In reply to ]
On Thu, 14 Apr 2011 14:18:09 Benny Pedersen wrote:
> > To capture both, redirect STDOUT first, then set STDERR to match:
> > tcptraceroute ipv6.google.com 80 > /path/to/log/file 2>&1
>
> i end with 2 empty files
>
> would have being usefull if -d have turned stderr over to stdout for debug
>
> what more can i try now ?


That should only have created 1 file, empty or not.

Can you paste in the exact command you used?


--
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/~paulcol
Before you criticize someone, you should walk a mile in their shoes.
Then, when you do, you'll be a mile away, and you'll have their shoes.
Re: tcptraceroute have buffer overflow in ipv6 [ In reply to ]
On Thu, 14 Apr 2011 06:18:09 +0200
Benny Pedersen <me@junc.org> wrote:

>
> i end with 2 empty files
>
> would have being usefull if -d have turned stderr over to stdout for debug
>
> what more can i try now ?
>

If console redirection is not working, a possible work around is to use
the script command. This will capture everything that is sent to the
console, either via the keyboard or STDOUT/STDERR.

script /path/to/output/file

command 1
command 2
...
exit

See the man page for script.

Frank Peters