Date: Wed, 09 Aug 2006 20:56:53 +0200 From: Svein Halvor Halvorsen <svein.h@lvor.halvorsen.cc> To: Nikolas Britton <nikolas.britton@gmail.com> Cc: Igor Robul <igorr@speechpro.com>, freebsd-questions@freebsd.org Subject: Re: BSDstats Project v2.0 ... Message-ID: <44DA2FF5.5070201@lvor.halvorsen.cc> In-Reply-To: <ef10de9a0608090341l696b6ea3s2187f4b0a9b5fa6e@mail.gmail.com> References: <20060807003815.C7522@ganymede.hub.org> <20060808102819.GB64879@augusta.de> <20060808153921.V7522@ganymede.hub.org> <44D8EC98.8020801@utdallas.edu> <20060808201359.S7522@ganymede.hub.org> <44D91F02.90107@mawer.org> <20060808212719.L7522@ganymede.hub.org> <20060809072313.GA19441@sysadm.stc> <ef10de9a0608090341l696b6ea3s2187f4b0a9b5fa6e@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig293EF06927B881A28F6AB98F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nikolas Britton wrote: > I still like my idea the best for unique keys. It's a better way to > detect hosts behind NATs, here it is again, four versions to pick > from: >=20 > # ifconfig | sha256 > cbcc2f55a340c248af7e8a10871150d827af11d7051bbc782eefa04b0603248b > # ifconfig | sha1 > b607b9d45e6ad40c02ab20800e0d70245ab6db68 > # ifconfig | md5 > 22a2a3eca61166fb113f1a688b3dd842 > # ifconfig | cksum > 3977021799 540 >=20 > The only down side is it still can be faked, just like everything else.= ifconfig output is by no means constant on a single host. Eg. Take my laptop; the media, status and ssid lines will change pretty often on my wireless nic. I mean several times during one session. Why not hash just the hostname? Or MAC-address? Of course these could also be fabricated, but you can't possibly avoid that as long as this is open source. (And the protocol would be pretty easy to reverse engineer anyway) How 'bout? $ ifconfig | grep ether | md5 This will change whenever one adds, removes or replaces a nic, though. Svein Halvor --------------enig293EF06927B881A28F6AB98F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: mailto:pgpkey@svein.halvorsen.cc to get my PGP-key iD8DBQFE2i/8hQg3vZGYu0ARApniAJ0R0wsxb+VX2CwRp2ooiQaoTEyF1ACfYlJ3 wU3fXn3BsHcv0GIlQmHulOU= =6zOr -----END PGP SIGNATURE----- --------------enig293EF06927B881A28F6AB98F--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44DA2FF5.5070201>