How To Install beef-xss on Kali Linux

In this tutorial we learn how to install beef-xss on Kali Linux. beef-xss is Browser Exploitation Framework (BeEF)

Introduction

In this tutorial we learn how to install beef-xss on Kali Linux.

What is beef-xss

beef-xss is:

BeEF is short for The Browser Exploitation Framework. It is a penetration testing tool that focuses on the web browser.

Amid growing concerns about web-born attacks against clients, including mobile clients, BeEF allows the professional penetration tester to assess the actual security posture of a target environment by using client-side attack vectors. Unlike other security frameworks, BeEF looks past the hardened network perimeter and client system, and examines exploitability within the context of the one open door: the web browser. BeEF will hook one or more web browsers and use them as beachheads for launching directed command modules and further attacks against the system from within the browser context.

There are three methods to install beef-xss on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install beef-xss Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install beef-xss using apt-get by running the following command:

sudo apt-get -y install beef-xss

Install beef-xss Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install beef-xss using apt by running the following command:

sudo apt -y install beef-xss

Install beef-xss Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install beef-xss using aptitude by running the following command:

sudo aptitude -y install beef-xss

How To Uninstall beef-xss on Kali Linux

To uninstall only the beef-xss package we can use the following command:

sudo apt-get remove beef-xss

Uninstall beef-xss And Its Dependencies

To uninstall beef-xss and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove beef-xss

Remove beef-xss Configurations and Data

To remove beef-xss configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge beef-xss

Remove beef-xss configuration, data, and all of its dependencies

We can use the following command to remove beef-xss configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge beef-xss

Dependencies

beef-xss have the following dependencies:

References

Summary

In this tutorial we learn how to install beef-xss package on Kali Linux using different package management tools: apt, apt-get and aptitude.