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

Using BeEF for browser exploitation


BeEF stands for Browser Exploitation Framework. It is a pen testing tool that focuses on browser and related exploitation. Nowadays, there are a growing number of threats toward the client browser comprised of mobile clients, web clients, and so on. BeEF allows us to pen test the targets using client-side attack vectors such as creating users, executing malicious script, and so on. BeEF mainly focuses on web-client-based exploitation, for example, browser level.

Getting ready

BeEF XSS is already a part of Kali Linux. For this exercise, we are using a Windows machine with a Firefox browser. We will be hooking the client via the Firefox browser. On accessing the hook, the JavaScript is executed and the hook is deployed. If there are any issues while running BeEF-XSS framework, refer to the guide at https://github.com/beefproject/beef/wiki/Installation .

How to do it...

  1. Initiate the BeEF framework by entering following in the terminal:
      cd /usr/share...