Book description
Leverage the simplicity of Python and available libraries to build web security testing tools for your application
About This Book- Understand the web application penetration testing methodology and toolkit using Python
- Write a web crawler/spider with the Scrapy library
- Detect and exploit SQL injection vulnerabilities by creating a script all by yourself
Learning Python Web Penetration Testing is for web developers who want to step into the world of web application security testing. Basic knowledge of Python is necessary.
What You Will Learn- Interact with a web application using the Python and Requests libraries
- Create a basic web application crawler and make it recursive
- Develop a brute force tool to discover and enumerate resources such as files and directories
- Explore different authentication methods commonly used in web applications
- Enumerate table names from a database using SQL injection
- Understand the web application penetration testing methodology and toolkit
Web penetration testing is the use of tools and code to attack a website or web app in order to assess its vulnerability to external threats. While there are an increasing number of sophisticated, ready-made tools to scan systems for vulnerabilities, the use of Python allows you to write system-specific scripts, or alter and extend existing testing tools to find, exploit, and record as many security weaknesses as possible. Learning Python Web Penetration Testing will walk you through the web application penetration testing methodology, showing you how to write your own tools with Python for each activity throughout the process. The book begins by emphasizing the importance of knowing how to write your own tools with Python for web application penetration testing. You will then learn to interact with a web application using Python, understand the anatomy of an HTTP request, URL, headers and message body, and later create a script to perform a request, and interpret the response and its headers. As you make your way through the book, you will write a web crawler using Python and the Scrappy library. The book will also help you to develop a tool to perform brute force attacks in different parts of the web application. You will then discover more on detecting and exploiting SQL injection vulnerabilities. By the end of this book, you will have successfully created an HTTP proxy based on the mitmproxy tool.
Style and approachA easy-to-follow guide that will help you build different web application security testing tools. With each chapter building on the knowledge of the previous section, this book will help you to smartly assess the security needs of your apps.
Table of contents
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributor
- Preface
- Introduction to Web Application Penetration Testing
- Interacting with Web Applications
- Web Crawling with Scrapy – Mapping the Application
- Resources Discovery
- Password Testing
- Detecting and Exploiting SQL Injection Vulnerabilities
- Intercepting HTTP Requests
- Other Books You May Enjoy
Product information
- Title: Learning Python Web Penetration Testing
- Author(s):
- Release date: June 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789533972
You might also like
book
Python Web Penetration Testing Cookbook
Over 60 indispensable Python recipes to ensure you always have the right code on hand for …
book
Hands-On Penetration Testing with Python
Implement defensive techniques in your ecosystem successfully with Python Key Features Identify and expose vulnerabilities in …
book
Effective Python Penetration Testing
Pen test your system like a pro and overcome vulnerabilities by leveraging Python scripts, libraries, and …
book
Python Penetration Testing Essentials
This book gives you the skills you need to use Python for penetration testing, with the …