Building our first BruteForcer

In this section, we're going to build a script that will help us to discover resources using a dictionary. We're going to create a basic BruteForcer. We'll start by defining the objective of the tool and then go over the code for the basic structure of the BruteForcer.

Finally, we'll run it against our test web application using the following steps:

  1. Go back to our editor and open the project folder for section 4 by selecting File | Add Project Folder... | Desktop | Examples | Section-4 | OK.
  2. Then, open the file for forzabruta.py.
  3. In this script, we have the basic structure for our BruteForcer. We have our typical import, and then we have the banner function, which will print the name of the script. The usage ...

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.