From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 08:36:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 632CF16A4CE for ; Sun, 11 Jan 2004 08:36:40 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE35343D5A for ; Sun, 11 Jan 2004 08:36:36 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i0BGaTfn013062 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Jan 2004 16:36:30 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0BGaTj4013061; Sun, 11 Jan 2004 16:36:29 GMT (envelope-from matthew) Date: Sun, 11 Jan 2004 16:36:29 +0000 From: Matthew Seaman To: Malcolm Kay Message-ID: <20040111163629.GA12774@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Malcolm Kay , ecrist@adtechintegrated.com, Bernard El-Hagin , FreeBSD Questions References: <20040110224342.23710.qmail@web13910.mail.yahoo.com> <200401111653.52614.malcolm.kay@internode.on.net> <20040111120559.GB10388@happy-idiot-talk.infracaninophile.co.uk> <200401120018.52511.malcolm.kay@internode.on.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <200401120018.52511.malcolm.kay@internode.on.net> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: ecrist@adtechintegrated.com cc: Bernard El-Hagin cc: FreeBSD Questions Subject: Re: Download contents of http directory? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2004 16:36:40 -0000 --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 12, 2004 at 12:18:52AM +1030, Malcolm Kay wrote: > On Sun, 11 Jan 2004 22:35, Matthew Seaman wrote: > > On Sun, Jan 11, 2004 at 04:53:52PM +1030, Malcolm Kay wrote: > > > This raises a question for which I don't know the answer: > > > How does one list an http directory that does allow it? > > > > Basically, you shouldn't. If the web site administrator has set up > > index.html files or otherwise prevented you from generating a > > directory listing, it generally means that there's stuff in that > > directory which you aren't meant to access. It's impolite (at best) > > to try and get round that, although the wise admin will take stronger > > meansures to ensure that even if you can guess filenames, you still > > can't download anything you shouldn't. > > >=20 > Please reread my query -- I'm asking how to read the directory=20 > when the administrator does allow it. Oops. Sorry about that. Note to self: read what is written, not anything else. Just do a HTTP GET on the directory name. eg. % GET http://localhost/~matthew/ Index of /~matthew

Index of /~matthew

3D"Icon Name                    Last modified      Size  Descript=
ion
3D"[DIR]" Pa= rent Directory - =20 3D"[DIR]" book= s/ 07-Aug-2003 20:12 - =20 3D"[DIR]" cryptosphere/ 02-Jun-2003 16:34 - =20 3D"[ fo= o.php 08-Oct-2003 12:24 1.1K =20 3D"[TXT]" = mrtg-rrd.cgi 23-Jan-2003 13:30 24K =20 3D"[TXT]" mrtg-rrd.cgi-1.20 31-Jan-2003 16:25 24K =20 3D"[TXT]" mrtg-rrd.cgi.000 14-Jan-2003 12:55 24K =20 3D"[DIR]" mrtg/= 18-Apr-2003 15:36 - =20 3D"[TXT]" nwc.c= gi 17-Nov-2002 08:04 12K =20 3D"[TXT]" nwc.c= ss 17-Nov-2002 08:04 2.0K =20 3D"[ nw= c.php 17-Nov-2002 08:04 12K =20
Apache/2.0.48 (Unix) PHP/4.3.4 Server at localhost Port 80 If you want that without all of the HTML fluff: % lynx -dump -nolist http://localhost/~matthew/ =20 Index of /~matthew =20 Icon Name Last modified Size Description _____________________________________________________________________= _____ [DIR] Parent Directory - [DIR] books/ 07-Aug-2003 20:12 - [DIR] cryptosphere/ 02-Jun-2003 16:34 - [ ] foo.php 08-Oct-2003 12:24 1.1K [TXT] mrtg-rrd.cgi 23-Jan-2003 13:30 24K [TXT] mrtg-rrd.cgi-1.20 31-Jan-2003 16:25 24K [TXT] mrtg-rrd.cgi.000 14-Jan-2003 12:55 24K [DIR] mrtg/ 18-Apr-2003 15:36 - [TXT] nwc.cgi 17-Nov-2002 08:04 12K [TXT] nwc.css 17-Nov-2002 08:04 2.0K [ ] nwc.php 17-Nov-2002 08:04 12K _____________________________________________________________________= _____ =20 =20 Apache/2.0.48 (Unix) PHP/4.3.4 Server at localhost Port 80 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --17pEHd4RhPHOinZp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAAXuNdtESqEQa7a0RAk0NAJ9xiWlIrWJw6UO1iMrd7rjCC2vrQACePi2O aa8zHuTmkk5cWLpxNxdGN5E= =x3Om -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--