A dictionary attack uses a predefined list of words to crack password hashes by systematically testing each entry until a match is found. This demonstration covers the full process using Hashcat on Kali Linux to crack an MD5 hash with a custom wordlist.
Dictionary Attack
A dictionary attack is pretty simplistic. It just means that we're using a list of dictionary words to try to crack a password. Just a reminder that this is for ethical hacking purposes only.
I'm on my demo machine here, a Kali Linux box, and what we're going to do is use hashcat to crack a password. But first of all, we have to create a hash of the password. Passwords are stored as a hash value, so what we need to do is figure out how to crack this hash value to figure out what the password is.
So let's generate a hash first. What I'm going to do is echo the password we're going to use, which is nestful, and then we're going to do an MD5 hash on that. So there's our hash right there.
Now what I'm going to do is show you the dictionary that we're going to use, so: nano dictionary. You'll notice here that it's not a complete list of everything in the dictionary. I just created some simple dictionary words in here. That's what we're going to use as an example, but I'd probably have a longer list if I was actually cracking a database or a password here.
So next, what we're going to do is run our hashcat. I'm going to do a -m and we're going to choose 0. And then we will specify the hash, which is just this hash that's been copied down there. And then I'm going to use that text document with those dictionary words in it. So then I'm going to hit enter. It starts doing it, and there it is. It's been cracked. So here is the password that it figured out, and here's the hash of that password.
Pretty simplistic. That's a dictionary attack. It's not very complicated at all. It's just using dictionary words to try to crack a password or some sort of password database.
Here's the attack card on a dictionary attack, where we're just using a list of dictionary words to guess a password. And so here we have some dictionary words that we ran against a hash to crack it and figure out what the actual password is.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →