Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 16:22:06 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        Amancio Hasty <hasty@rah.star-gate.com>
Cc:        Terry Lambert <tlambert@primenet.com>, jdp@polstra.com, hackers@FreeBSD.ORG
Subject:   Re: dladdr hax 
Message-ID:  <199801182322.QAA01469@mt.sri.com>
In-Reply-To: <199801182223.OAA19901@rah.star-gate.com>
References:  <199801182214.PAA04062@usr04.primenet.com> <199801182223.OAA19901@rah.star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Amancio Hasty writes:
> {hasty} pwd
> /usr/home/hasty
> {hasty} ./test
> argv[0] ./test 
> getcwd /usr/home/hasty 
> {hasty} /tmp/test
> argv[0] /tmp/test 
> getcwd /usr/home/hasty 
> 
> Now it looks to me that we have enough information to reconstruct the 
> the execution path.

You've *GOT* to be kidding right?

Put the program anywhere in your PATH, and then tell me where it's
located by not supplying the entire path to the executuable, aka.

{hasty} cp test /usr/local/bin/tst
{hasty} tst
argv[0] tst
getcwd /usr/home/hosty
{ hasty }

How does any of the above information tell us that 'tst' lives in
/usr/local/bin?


Nate



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801182322.QAA01469>