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...
- 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:
- 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...