Question: *PYTHON* Im not to worried about incorporating a timer to count the compiling just yet. Im currently stuck on making a function start with a
*PYTHON* Im not to worried about incorporating a timer to count the compiling just yet. Im currently stuck on making a function start with a single letter and roll through the alphabet then once it hits z add a second letter and so on and so on. please show code and explain steps for this function.
brute_force_attack(zip_file) function takes the zip file pointer as an argument. The brute force function will generate all the possibilities, and attempt them. It should output the correct password once found. If successful, return True, otherwise return False
The task is to develop a brute force function that generates a strings containing a-z (all lowercase) of length 8 or less as the password to attempt (Hint: start small trying small passwords first). For example ,your string should start out with a, then b, then c, so on and so forth. When you get to z change the first character back to a and append another letter so your string becomes aa then ab. Once the password is cracked you should display the password to the user.
RUN EXAMPLE:
Cracking zip files.
Warning cracking passwords is illegal due to law XXXXX and has a prison term of XXXXX
What type of cracking ('brute force','dictionary','both','q'): brute force
Brute Force Cracking
Enter zip file name: brute_force.zip
Brute force password is XXXXXX
Elapsed time (sec): 3.0039
What type of cracking ('brute force','dictionary', 'both', 'q'): q
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
