Brendan Coles edited this page Mar 17, 2018 · 21 revisions
Clone this wiki locally

The following installation instructions are suitable for Linux and Mac OSX operating systems.

In theory, BeEF should work on any operating system which can run Ruby 2.3+ and nodejs. However, only MacOS and Linux are officially supported.


Obtain application source code either by downloading the latest archive:

$ wget

Or cloning the Git repository from Github:

$ git clone


BeEF requires Ruby 2.3 (or newer). Refer to your operating system documentation for instructions to install the latest stable version of Ruby.

# Debian based systems
sudo apt-get install ruby ruby-dev

# RedHat / Fedora
sudo yum install ruby ruby-devel

If your operating system package manager does not support Ruby version 2.3 (or newer), you can add the brightbox ppa repository for the latest version of Ruby:

$ sudo apt-add-repository -y ppa:brightbox/ruby-ng

Alternatively, consider using a Ruby environment manager such as rbenv or rvm to manager your Ruby versions.


Once a suitable version of Ruby is installed, run the install script in the BeEF directory:

$ ./install

This script installs the required operating system packages and all the prerequisite Ruby gems.

Upon successful installation, be sure to read the Configuration page on the wiki for important details on configuring and securing BeEF.

Start BeEF

To start BeEF, simply run:

  $ ./beef


Due to the fast-paced nature of web browser development and webappsec landscape, it's best to regularly update BeEF to the latest version.

If you're using BeEF from the GitHub repository, updating is as simple as:

$ git pull

Previous | Next