O'Reilly logo

Learning Python Web Penetration Testing by Christian Martorella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 passwordsthreadsuser, 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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required