Creating the password cracker

Let's create our password cracker:

  1. 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.
  2. 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: ...

Get Learning Python Web Penetration Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.