Mycoursefree - Click - 001 Microsoft-Word-Password-Cracking-with-John
Mycoursefree - Click - 001 Microsoft-Word-Password-Cracking-with-John
with John
(Recover Word, Excel, PowerPoint Passwords)
1
John The Ripper (JTR) is one of the most popular
password cracking tools available in most Penetration
testing Linux distributions like Kali Linux, Parrot OS, etc.
The tool has a user-friendly command-line interface and
the ability to detect most password hash types. This
lesson will dive into John the Ripper, show you how it
works, and explain why you need it for security testing
CONCEPT
Step-1 Step-2
• Get the Hash from the office • Crack the hash with John
file
3
Step- 1
Prepare a password protected word file
4
Step- 2
Copy the file from Windows machine to Kali
5
Step- 3
Get the hash of the document with following command
Here :
Crackme2.docx is the password protected file
Hash2.txt is the txt file that will contain our hash that is
required to be cracked
6
Step- 3
Get the hash of the document with following command
7
Step- 4
Now crack the password with following command
John hash2.txt
Here :
Hash2.txt file is the file that contains our hash for the
document file
By default it will first try with the single crack attack (check the
combination of file names for passwords, then the default
dictionary and then go for brute force)
8
Step- 4
Now crack the password with following command
John hash2.txt
9
Step- 5
To check the cracked password
10
John Additional Attacks
11
Multi-Attack
To run john faster and use it with multiple processes
Here :
fork=3 tells john that three processes be created for cracking
passwords (Useful in multicore processor)
12
Dictionary Attack
13
Dictionary Attack
To use rockyou dictionary, un compress the file
gunzip /usr/share/wordlists/rockyou.txt.gz
ls /usr/share/wordlists/
14
Dictionary Attack
Here :
‐‐/usr/share/wordlists/rockyou.txt is the dictionary
Hash.txt is the hash, we are aiming to crack
15
Dictionary Attack
16
Mask Attack
If you know number of digits or type of password, you can use
the masking attack
Here :
?d tells that there is a digit.
?d?d?d will check all combination of 3 digits
You can specify ?l for lower case characters or ?u for upper
case characters
17
Mask Attack
18
Mask Attack
19
DEMO
20
Additional Resources
21
THANKS
22