From owner-freebsd-hubs@FreeBSD.ORG Fri Aug 8 16:27:15 2003 Return-Path: Delivered-To: freebsd-hubs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C74D437B401 for ; Fri, 8 Aug 2003 16:27:15 -0700 (PDT) Received: from lurza.secnetix.de (mail2.secnetix.de [195.143.231.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32B6F43FB1 for ; Fri, 8 Aug 2003 16:27:14 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (oxqvcp@localhost [127.0.0.1]) by lurza.secnetix.de (8.12.8p1/8.12.8) with ESMTP id h78NQwgC065235; Sat, 9 Aug 2003 01:26:59 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.8p1/8.12.8/Submit) id h78NQsuu065234; Sat, 9 Aug 2003 01:26:54 +0200 (CEST) From: Oliver Fromme Message-Id: <200308082326.h78NQsuu065234@lurza.secnetix.de> To: jonny@jonny.eng.br (=?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?=) Date: Sat, 9 Aug 2003 01:26:54 +0200 (CEST) In-Reply-To: <3F2A9595.5010302@jonny.eng.br> from "=?ISO-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?=" at Aug 01, 2003 01:30:13 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-hubs@freebsd.org cc: Ken Smith cc: Garrett Wollman Subject: Re: Requirements Final Draft Attempt #2 :-/ X-BeenThere: freebsd-hubs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Distributions Hubs: mail sup ftp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2003 23:27:16 -0000 João Carlos Mendes Luís wrote: > Oliver Fromme wrote: > > [...] > > All of that might sound complicated, but it really isn't > > that bad. The collector can be a small shell script using > > /usr/bin/fetch or automated ncftp. The extension to > > sysinstall shouldn't be too difficult either. I would be > > willing to work on the collector thing at least, and maybe > > also on the sysinstall part (if time permits). > > You should not need to get the files, only list them. Correct, that's what I meant. > Wouldn't this be much easier in perl? I do not like perl, but that task is indeed a bit heavy for a shell script. When I had a few minutes of free time, I coded a rough draft of such a script. I took the liberty to write it in Python. It doesn't do any DNS zone transfers, so it is not affected by reluctant DNS servers. Instead, the list of CC subdomains is hardcoded. For each subdomain, it starts at ftp.$DOMAIN, ftp1.$DOMAIN and increases the number until a host cannot be resolved. That seems to be a better approach than relying on zone transfers. The script produces ASCII output in a very simple format. It could easily be fed into a database (maybe I'll try it with PostgreSQL when I have a few more minutes of free time). I also wrote a web page which reads that ASCII file and presents the data in HTML tables. It doesn't look very pretty (I'm a programmer, not an artist), but serves well as a rough draft and proof-of-concept. http://www.secnetix.de/~olli/fbsd-ftp/ Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "People who claim Windows is superior to Unix are the same people who'd argue that you better use your hand instead of toilet paper to wipe your ass. I can hear them now - 'It's colourful and it's intuitive and easy to use and even a child could do it.'" -- (unknown)