From owner-freebsd-hackers Sun Jan 18 15:22:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA25132 for hackers-outgoing; Sun, 18 Jan 1998 15:22:52 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA25123 for ; Sun, 18 Jan 1998 15:22:14 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id QAA06821; Sun, 18 Jan 1998 16:22:08 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id QAA01469; Sun, 18 Jan 1998 16:22:06 -0700 Date: Sun, 18 Jan 1998 16:22:06 -0700 Message-Id: <199801182322.QAA01469@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Amancio Hasty Cc: Terry Lambert , jdp@polstra.com, hackers@FreeBSD.ORG Subject: Re: dladdr hax In-Reply-To: <199801182223.OAA19901@rah.star-gate.com> References: <199801182214.PAA04062@usr04.primenet.com> <199801182223.OAA19901@rah.star-gate.com> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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