DEV Community

Dilver Huertas Guerrero
Dilver Huertas Guerrero

Posted on

7

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

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay