![]() # Look through our list of common passwords firstįoundit = search_method_3("passwords.txt") Print("Trying to guess password "+str(which_password)) If you don't want to waste time trying method 3, you can change this: Place a hashmark in from to a line to comment it out - then Python won't execute it.įor example, the code starts with method 3. The main part of the program called the various methods in order. Then when you run the program in Python3 (we like to use IDLE3 to do that) the program can find the text file of passwords.įinally, if you want to test out an idea and not waste a lot of time using methods that you don't care about, simply remove them from the code by commenting them out. Simply download it the same way you downloaded crack2.py, and make sure you put them in the same directory. It's available on the website in the project idea materials list. You also said that you weren't sure how to get the password file. And of course, you should use password 0 as a test bed to see how your new strategies work. You'll have to modify the program and try some new ideas of your own to guess password 6. The program as provided with that specific 'passwords.txt' file will correctly guess passwords 1 through 5. The only available choices are 0 through 6, where 0 is for the one you can enter in plain readable text and 1 through 6 are for the encrypted ones. Try some others or see if you can make it guess faster.Īnswering random numbers into that initial question won't work. Your algorithm correctly guessed the password you entered. The total search for all methods took 23 seconds and 19,680,695 guesses.(856,763 guesses per second) The search took 0.06 seconds for 315 tests or 4,760 tests per second. Using method 1 and searching for 3 digit numbers. The search took 0.03 seconds for 100 tests or 2,998 tests per second. Using method 1 and searching for 2 digit numbers. The search took 0.03 seconds for 10 tests or 301 tests per second. Using method 1 and searching for 1 digit numbers. The search took 23 seconds for 19,679,400 tests or 872,705 tests per second. Using method 4 with 26 punc chars and 435 in the list The search took 0.0 seconds for 870 tests or 953,999 tests per second. Science Buddies: How Easily Can Your password Be Hacked? If you had waited long enough for the program to go through the many tests you should have gotten this: (I added some comments in ) It then tries guessing numbers and it will succeed. That takes longer but it too, will fail on this one. It then tries combining two words together with punctuation. ![]() Since it's a 3 digit number, that's going to fail. When you asked it to guess password 0, it first tried method 3 (which is simply comparing it to the list of words in the file passwords.txt). If you disagree or want to try something else, we encourage you to alter the program to experiment. I selected that order because people tend to pick passwords that this order is more likely to get quickly. It goes through the different methods in order. What the program is asking you for is which of the 7 passwords you want it to try. In the example code it's simply "314" because guessing it is as easy as pie. Password 0 is a special seventh one that is not encrypted. The code has 6 prestored passwords that are encrypted. I hope you followed Deana's suggestion and wrote your own, as that was the bigger plan anyway. ![]() I'm sorry you had trouble with the code for this project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |