Unit 2: Password Cracking 2.3 Activity and Discussion Activity: Generating Passwords with rockyo...

mac2022-06-30  25

ACTIVITY: GENERATING PASSWORDS WITH ROCKYOU.TXT

This activity is ungraded.

Remember: Be sure to watch this Demo video from this unit before trying this activity. Watching me do it first will help you understand each of the steps.

The rockyou.txt Wordlist

System:  You can complete this activity on any system.

Time: This activity should take you approximately 15 minutes to complete.

Downloads

rockyou.txt is included in the Kali VM downloaded in Unit 1. Instructions for installing Kali VM.

Goal

To see how using an additional wordlist extends the capabilities of John the Ripper.

Instructions

When the wordfile that comes with John the Ripper is unsuccessful in cracking a password, it’s time to use John the Ripper with rockyou.txt, an enormous wordlist that contains over 14 million words!

Note: Hit Enter after each command.

Launch your Kali Virtual machine and open a terminal. (Instructions for this were included in Unit 1.)Enter john to launch John the Ripper.Copy the compressed rockyou.txt file to the current directory (the dot at the end of the command represents the current directory):cp /usr/share/wordlists/rockyou.txt.gz . Decompress the file:gzip –d rockyou.txt.gzCompare the size of the john file, ls –l /usr/share/john/password.lst to the size of rockyou.txt: ls –l rockyou.txt.Quite a difference!

Compare the contents of the wordlists

Display the john file: cat /usr/share/john/password.lstDisplay rockyou.txt: cat rockyou.txt

Enjoy the show! When you want to stop, break out with Ctrl + C.

After generating more users with very complex passwords, and making a new unshadow file, you can use the rockyou.txt file with john.

This command assumes a new unshadow file called rochester3.txt: john --wordlist=rockyou.txt rochester3.txt.

After you've finished, answer the Check Your Work questions.

转载于:https://www.cnblogs.com/sec875/articles/10015984.html

相关资源:Cracking.the.Coding.Interview.189.Programming.Questions.and.Solutions
最新回复(0)