Starting BeEF
In this step, we will learn how to start the BeEF server and access the web interface.
Before starting BeEF, we need to modify the default password for security reasons. Open the config.yaml
file using vim
:
vim config.yaml
Find the passwd
field and change the default beef
password to a custom password of your choice. Save and exit the file.
Next, we need to set the locale to avoid potential errors during startup:
locale-gen UTF-8 en_US && localedef -c -f UTF-8 -i en_US en_US.UTF-8
export LANG="en_US.UTF-8"
export LANGUAGE="en_US:en"
Now, start the BeEF server by running the following command:
./beef
Wait for the server to start completely. Once you see the message indicating that BeEF has started, you can access the web interface using a web browser.
Open a web browser on your host machine and navigate to http://<Kali_IP_Address>:3000/ui/panel
. Replace <Kali_IP_Address>
with the IP address of your Kali container (you can find it by running ifconfig
inside the Kali container).
You will be prompted to enter a username and password. Use the default beef
for both the username and password (or the custom password you set earlier).
After logging in, you will see the BeEF web interface with various sections, such as the online browser list, commands, and modules.