Question: Linux: Consider the file 10k-most-common.txt in the homework zip file, which contains the 10,000 most commonly-used passwords (obtained from https://github.com/danielmiessler/). We are interested in determining
Linux:
Consider the file 10k-most-common.txt in the homework zip file, which contains the 10,000 most commonly-used passwords (obtained from https://github.com/danielmiessler/). We are interested in determining how many of these passwords are simply words that can be found in a dictionary. Write a python script count_in_dict.py that takes a file name as a command line argument and, assuming that file has one word per line, counts how many words from that file appear in the american-english dictionary file /usr/share/dict/american-english. Your search should be case insensitive, so if robert is a password and Robert is in the dictionary, this should be considered a match. You should then be able to run $ ./count_in_dict.py 10k-most-common.txt to get the numerical answer. Enter this numerical answer into the auto-graded part of this problem and then copy and paste the contents of your python script into the text box for your justification.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
