This activity is ungraded.
Remember: Be sure to watch these Demo videos from this unit before trying this activity. Watching me do it first will help you understand each of the steps.
Wordlists with Crunch 1Wordlists with Crunch 2System: You can complete this activity on any system.
Time: This activity should take you approximately 30 minutes to complete.
To understand how crunch generates lists and practice using commands to generate different types of passwords.
Note: Hit Enter after each command.
Launch your Kali Virtual machine and open a terminal. (Instructions for this were included in Unit 1)Enter crunch, which will show the basic usage of this wordlist generating utility.Enter man crunch to access the man page for crunch.To exit the man page entry for crunch, hit q.After each command that follows, notice the listings of the amount of data and number of lines that display before the words are generated.In the terminal, enter crunch 1 3.This generates passwords from length 1 to length 3, using lower case letters.Enter crunch 1 3 -o weissman.txt.This will save the results to a file named weissman.txt, instead of outputting the results to the console.Enter leafpad weissman.txt to see the contents of the file.Close the file.Enter these commands to generate passwords of different lengths and character sets. Use Ctrl+C to break out of each. CommandGenerates Passwords…crunch 3 6Length 3 to length 6, using letterscrunch 8 12Length 8 to length 12, using letterscrunch 1 3 abcLength 1 to length 3, with the only acceptable characters being a, b, and ccrunch 5 8 RITx!Length 5 to length 8, mixing lower case, upper case, numbers, and symbolsEnter cat /usr/share/rainbowcrack/charset.txt to see choices of character sets. Here’s a web based version.
Enter these commands to generate passwords of different lengths and character sets. Use Ctrl+C to break out of each.
CommandGenerates…crunch 8 8 -f /usr/share/rainbowcrack/charset.txt mixalpha-numeric8-character passwords using lower case letters, upper case letters, and numberscrunch 8 8 -f /usr/share/rainbowcrack/charset.txt alpha-numeric-symbol32-space8-character passwords using lower case letters, upper case letters, numbers, symbols, and even white spaceLet’s say I’m targeting an employee who posted his birthdate on social media. Bob Smith was born on April 15th! How can I generate passwords using this information?
CommandGenerates…crunch 8 8 -t @@@@0415 -f /usr/share/rainbowcrack/charset.txt alpha-numeric-symbol32-spacePasswords of length 8 that end with Bob’s birthdayWhat other information can we use? We know that Bob’s wife is named Alice.
CommandGenerates…crunch 8 8 -t alice@@@ -f /usr/share/rainbowcrack/charset.txt alpha-numeric-symbol32-spacePasswords of length 8 that start with Bob’s wife’s name, AliceThe -p option eliminates repeating characters or words. The mix and max length values can be anything, they’re never considered, but must be included. For example:
crunch 22 52 -p jonathan scott weissmancrunch 44 93 -p jsw[-p charset] OR [-p word1 word2 ...] is optional and tells crunch to generate words that don't have repeating characters.
By default crunch will generate a wordlist size of #of_chars_in_charset ^ max_length. This option will instead generate #of_chars_in_charset!.
The ! stands for factorial. For example say the charset is abc and max length is 4; crunch will by default generate 3^4 = 81 words. This option will instead generate 3! = 3x2x1 = 6 words (abc, acb, bac, bca, cab, cba).This must be the last option in the command! -p cannot be used with -s. Also, although it ignores min and max length, you must still specify two numbers.After you've finished, answer the Check Your Work questions.
转载于:https://www.cnblogs.com/sec875/articles/10015973.html
相关资源:JAVA上百实例源码以及开源项目