From the course: Developing Ethical Hacking Tools with Python

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Brute-forcing ZIP passwords with Python: Part 1

Brute-forcing ZIP passwords with Python: Part 1

From the course: Developing Ethical Hacking Tools with Python

Brute-forcing ZIP passwords with Python: Part 1

Hello and welcome to this Ethical Hacking Tools with Python video. In this module, we're going to work on a zip password bruteforcer in Python. And in this lesson, we're going to look into the prerequisites. We're going to explain the rationale behind the code and also begin writing the code. So let's start with the obvious. What are the prerequisites? Well, you don't need to install anything. The two main Python libraries that we're going to work with are zipfile and argparse, both of them in the Python standard library. So you're good to go. Later on, I will provide a password-protected archive as well as a text file with a list of passwords for your testing of the password bruteforcer. Now the main idea behind the code is that it looks into the password file, which contains one word per line. It goes line by line and uses each word as password when trying to extract the archive, when and if it finds the correct password, it extracts the archive and outputs a success message to the…

Contents