DEV Community

Dilver Huertas Guerrero
Dilver Huertas Guerrero

Posted on

6

Instalar BeEF en Kali Linux 2024

The Browser Exploitation Framework

Instalación de Ruby

Desinstalar la versión de ruby actual
sudo apt remove ruby
Instalar ruby con rbenv

sudo apt update
sudo apt install -y build-essential libssl-dev libreadline-dev zlib1g-dev git
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
source ~/.zshrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 3.0.3
rbenv global 3.0.3
Enter fullscreen mode Exit fullscreen mode

Asegurarse que la versión correcta está en uso
ruby -v

Instalación de Browser Exploitation Framework (BeEF)

Clonar el repositorio
git clone https://github.com/beefproject/beef
Una vez clonado el repositorio, realizar los siguientes cambios en los archivos ubicados en la carpeta principal

  • En el archivo install, modificar la línea 107: Cambiar libncurses5-dev por libncurses-dev

  • En el archivo config.yaml, modificar las líneas 20 y 21 con el usuario y contraseña que quieran.

Desde la consola ejecutar el comando:
./install
Si todo se ha instalado correctamente, al final se genera el siguiente mensaje:

Image description

Para iniciar BeEF ejecutar el comando:
./beef
Pueden acceder a traves de la URL http://127.0.0.1:3000/ui/panel

Image description

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay