Book Image

Effective Python Penetration Testing

By : Rejah Rehim
Book Image

Effective Python Penetration Testing

By: Rejah Rehim

Overview of this book

Penetration testing is a practice of testing a computer system, network, or web application to find weaknesses in security that an attacker can exploit. Effective Python Penetration Testing will help you utilize your Python scripting skills to safeguard your networks from cyberattacks. We will begin by providing you with an overview of Python scripting and penetration testing. You will learn to analyze network traffic by writing Scapy scripts and will see how to fingerprint web applications with Python libraries such as ProxMon and Spynner. Moving on, you will find out how to write basic attack scripts, and will develop debugging and reverse engineering skills with Python libraries. Toward the end of the book, you will discover how to utilize cryptography toolkits in Python and how to automate Python tools and libraries.
Table of Contents (16 chapters)
Effective Python Penetration Testing
About the Author
About the Reviewer

Security misconfiguration

For better secure applications, it requires a secure configuration of each of its underlying technologies, like application, web server, database server, and operating system. Also, we need to keep all software up to date. Some of the examples for security misconfigurations are as follows:

  • Outdated software

  • Presence of sample application or sample databases in server

  • Enabling directory listings that lead to data disclosure, including codebase

  • Unhandled error pages, which can reveal sensitive information

  • Active default passwords in the applicable or applicable framework

  • We can use Python scripts to verify these types of vulnerabilities. As we discussed in the previous sections, we can use Python libraries to send crafted requests and analyze their responses.