Let's create our password cracker:
- Let's go back to the Atom editor and open the back2basics.py file. In Section-5, we can see that in the import area, we don't have anything new, and the structure of the script is pretty similar to the previous one.
- We have the start function that will show the banner, and it will pass the command line and read the parameters—the same parameters, except we have the user parameter now. Then, it will invoke the function launcher_thread with the variables passwords, threads, user, and url, which correspond to the dictionary of passwords, the number of threads, the username to be used, and the target URL:
def start(argv): banner() if len(sys.argv) < 5: usage() sys.exit() try: ...