🔓 Cracking Passwords
[ca. 1992]
De Anza Community College is near the heart of Silicon Valley, and, as such, had a large number of excellent computer courses taught by a large number of local adjunct instructors with plenty of industry experience. It probably still does.
At the time, it cost $6/unit to attend. It probably still does not.
Just as I was leaving to go to school at Chico State, they had constructed a new computer/technology building because the old one was getting a bit too tiny.
But the old one had serious character.
There were a number of VAXen in the back room: several 11/780s running VMS and a MicroVAX II running Ultrix. It was on this Ultrix machine that I discovered Unix, my preferred operating system to this day. (I'm typing this on a Linux machine as we speak.)
The computer lab was full of DEC VT-220 amber-screened serial terminals. They defaulted to 9600 bps, but we could get them up to 19200 bps with the right commands, if such speeds were needed.
No one used the Ultrix machine because the classes all sent their
students to the VMS computers (gross), but that just meant that I
generally had it to myself. So I just learned all I could about it. I
ran all the commands in /bin and /usr/bin just to see what happened.
I installed Moria so I could play that as well as the bundled games of
Rogue and Starship.
It was a great time.
One day, hunting around on the computer, I found a file called
/etc/passwd that I had permission to read! I took a look at it, and it
was a bunch of usernames and what were clearly encrypted passwords. They
just looked like garbage, so I couldn't use them to log in.
I hunted further in the documentation and found the crypt() function
that was used to encrypt passwords. The idea was that you could encrypt
some word and then see if the resulting garbage was identical to the
garbage in the /etc/password file. If it matched, the passwords must
also match.
There were a few more technical details to it, but that was basically the gist of it.
I choose a user at random and tried to guess their password by hand. I failed to do so after a few attempts and gave up.
What I needed was a way to try a bunch of passwords to see if anything
matched. Luckily for me, I already knew there was a list of words in
/usr/dict/words used by spellcheckers.
So I wrote a quick program to loop through all the users in the password file, and, for each of them, loop through all the words in the dictionary file to see if any of them were a password match.
It took some time. The computer wasn't really quick, and doing this was a lot of CPU-heavy math work.
But eventually I got a hit: sunshine.
It was the only password I got, and it belonged to one of my favorite instructors.
Now, I'm an honest person, and I'd never use that password to log in and I especially would never use it for malicious purposes.
So I did what an honest person would do: I told her that her password was susceptible to cracking and she should probably change it.
"But... I like my password!" she protested.
I don't know if she ended up changing it or not. Like I said, people generally didn't use that Ultrix box.
These days, admitting to trying to crack passwords would likely land you in some pretty hot water. I could imagine consequences ranging from a slap on the wrist to going to jail. But this was the early 1990s, and there was still the air of general trust between us rare computer enthusiasts. We all were in it for the exploration of the tech, and not to abuse and destroy.
It was really a different and exciting time and I was really very lucky to experience it in my formative years.
Eventually the entire computer lab was moved to the new tech building, and the old small one repurposed for something else. And the field moved on, as well.