Cracking Windows Passwords With Hashcat
Cracking Windows Passwords With Hashcat
with Hashcat
@mmar
1
Hashcat is a GPU based tool, so you need to have it
running on a machine with a powerful graphics card with
all drivers. It can be your windows machine, Ubuntu/ Kali
machine or you can do it in the cloud
For this lecture, we are going to use it on Windows with
all GPU drivers installed
CONCEPT
Step-1 Step-2
• Get the Hash from the SAM • Crack the hash with hashcat
file with Kali Linux and RockYou dictionary on
(Samdump2) our PC
3
Attack
Scenorio
You can copy the extracted hashes from the SAM file with Kali Linux in a
USB drive and then in your own time (offline attack) crack the hashes at
your home on your main machine with hashcat
4
We need to have Kali Live boot USB
(Check the lecture “Kali Linux as a bootable USB
Drive”)
Step- 1
Install the Hashcat from official website in your main PC
https://hashcat.net/hashcat/
6
Step- 2
Download and extract the rockyou dictionary in
hashcat folder
https://github.com/brannondorsey/naive‐hashcat/releases/download/data/rockyou.txt
7
Step- 3
Boot from Kali Linux USB drive
8
Step- 4
Navigate to windows/system32/config folder and copy
these files to Kali Desktop
SAM & SYSTEM
9
Step- 5
Now open the terminal on the desktop and dump the
hashes with following command
Samdump2 SYSTEM SAM >hash.txt
Here :
Samdump2 is the tool we are using
Hash.txt will contain all hashes that we are aiming to crack
10
Step- 6
Now copy the hash.txt file to hashcat folder on your
main PC (You can use a USB to copy the file)
11
Step- 7
Open the Power shell and then use the command to crack the
passwords
Here :
1000 tells the hashcat that its Windows password to be
cracked
Cracked.txt will store cracked passwords
hash.txt is the source file
Rockyou.txt is the dictionary file
12
Step- 7
Open the Power shell and then use the command to crack the
passwords
13
Step- 8
Open the cracked.txt file to view the cracked password
14
DEMO
15
Step- 4 (Optional)
16
THANKS
17