Install BeEF on Debian

Mansoor Barri
1 min readAug 12, 2023

--

DISCLAIMER

THIS TOOL SHOULD ONLY BE USED FOR EDUCATIONAL OR ETHICAL HACKING PURPOSE. MISUSE OF THIS TOOL WILL LEAD TO PROSECUTION.

BRIEF

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

Step 1: installing dependencies

Before installing anything update your repositories.

sudo apt update -y

Ruby, Ruby-dev and Git is required for BeEF. Install them using:

sudo apt install ruby ruby-dev git -y

Step 2: Installation

Clone BeEF repo

git clone https://github.com/beefproject/beef

cd into beef folder

cd beef/

Run the install script with sudo

sudo ./install

Say ‘y’ to both prompts

Step 3: Setup

open config.yaml and change the default credentials. BeEF will not work with default creds

nano config.yaml

Here I am using “test” as username and “beef” as password

use ctrl+x then press y then enter/return to save and exit the config file

Now start BeEF by

./beef

Here I got a error. To fix use this command

bundle install

if you don’t have bundler use sudo apt install bundler -y

Type your sudo password

now start BeEF again

./beef

Use the link next to “UI URL” to access the BeEF portal

BeEF portal

Login and use BeEF for education and pen testing purposes only

that’s it ✌🏽

--

--

Mansoor Barri
Mansoor Barri

Written by Mansoor Barri

Profile designed to share technology content about Penetration testing, Linux and Windows.

No responses yet