Book Image

Kali Linux Intrusion and Exploitation Cookbook

By : Dhruv Shah, Ishan Girdhar
Book Image

Kali Linux Intrusion and Exploitation Cookbook

By: Dhruv Shah, Ishan Girdhar

Overview of this book

With the increasing threats of breaches and attacks on critical infrastructure, system administrators and architects can use Kali Linux 2.0 to ensure their infrastructure is secure by finding out known vulnerabilities and safeguarding their infrastructure against unknown vulnerabilities. This practical cookbook-style guide contains chapters carefully structured in three phases – information gathering, vulnerability assessment, and penetration testing for the web, and wired and wireless networks. It's an ideal reference guide if you’re looking for a solution to a specific problem or learning how to use a tool. We provide hands-on examples of powerful tools/scripts designed for exploitation. In the final section, we cover various tools you can use during testing, and we help you create in-depth reports to impress management. We provide system engineers with steps to reproduce issues and fix them.
Table of Contents (18 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Web application firewall detection


In this recipe, we learn to use a tool called WAFW00F. WAFW00F and fingerprints web application firewall (WAF) products.

Getting ready

For this recipe, you will an Internet connection.

How to do it...

  1. WAFW00F is fairly simple and easy to use. Just open the terminal and enter the following command:
wafw00f https://www.microsoft.com

The output will be as shown in the following screenshot:

  1. Similarly, you can just keep changing the target domain to find the existence of the web application firewall.

How it works...

In this recipe, we have used WAFW00F to identify if we do have any web application firewall running. Detecting a web application firewall accurately can help you save a lot of hours later, during penetration testing.

WAFW00F works in the way:

  • It sends a normal request and analyzes the response; this identifies a number of WAF solutions
  • If that is not successful, it sends a number of (potentially malicious) HTTP requests and uses simple logic to deduce...