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

Cracking WPS


WPS stands for Wi-Fi Protected Setup. This was introduced in 2006 and the main of was to ease the process of adding new devices to the network; there was no need to remember long WPA or WEP passphrases. However, the security of WPS was short-lived; in 2011 a major security flaw was revealed that affected wireless routers that supported WPS.

Getting ready

For this recipe, we are going to use a tool called Reaver. It is an open source WPS cracking tool preinstalled in Linux. Reaver performs a brute force attack on the WPS pin number. Once we get the WPS PIN, the WPA PSK is recovered. For this exercise we will require a wireless router that has the WPS feature enabled.

How to do it...

  1. To scan for WPS enabled routers there is a package that comes with Reaver called wash; enter the following command to list the WPS-enabled device. Note that monitor mode is required to see the Beacon packets, understand whether the AP supports WPS, and tell whether WPS access is locked. This helps...