Wanted: program(s) to check user passwords
CCEL
ccel at community-chest.uucp
Sun Jul 16 07:09:07 AEST 1989
In article <576 at targon.UUCP> andre at targon.UUCP (andre) writes:
> ... I was thinking
>about running a program each night checking passwords on the system
>(by guessing or something like that) and warning users who choose to
>simple passwords.
I have the source to a program that a friend of mine wrote to hack the
passwords in a unix system (I'm posting this in case anyone else is
interested). It uses the crypt() function, which is also used by the
passwd utilities. The workings of crypt are various and sundry, and
unfortunately very very slow.
The program works by reading in the "salt" (two 6-bit words) for a user
from the password file. This is the encryption key for tha passwd, out of
64 possible. It then grabs words from the dictionary (I used the dict-
ionary just because it's a big list of a lot of words; you could probably
make your own list of common passwords or whatnot), encrypts a word using
the same salt, and compares it to the password. It reports any match(es).
Like I mentioned, this is horribly slow, even with one user on a fast system
it might take hours to find a match. But that is with a list of 24000 words.
I'll e-mail you the source and maybe you can find a way to play with it to
speed it up. If anyone else is interested, just drop me a note and i'll give
you a copy.
-------------------------------------------------------------------------
Randy Tidd
ccel at community-chest.UUCP
rtidd at mitre.arpa
More information about the Comp.unix.wizards
mailing list