How to reset BeEF forgotten passwords/credentials in Kali Linux 2025

Опубликовано: 03 Май 2026
на канале: Phil_jr
762
17

Forgot your BeEF password in Kali Linux? In this quick tutorial, I’ll show you how to reset the username and password for BeEF (Browser Exploitation Framework) by editing the config file. This works in any version of Kali, including Kali 2024 and 2025.

BeEF (Browser Exploitation Framework) is an ethical hacking tool used to test browser-based vulnerabilities and session hijacking techniques. Use it responsibly in labs or simulations only.


1. Open the BeEF config.yaml file

sudo nano /usr/share/beef-xss/config.yaml

Alternate path if that doesn’t work:

sudo nano /etc/beef-xss/config.yaml

2. Locate the credentials section

Find the part that looks like this:

credentials:
user: "beef"
passwd: "oldpassword"

Change it to:

credentials:
user: "beef"
passwd: "yournewpassword"

3. Save and Exit Nano
• Press Ctrl + O to save
• Press Enter
• Press Ctrl + X to exit

4. Restart BeEF

sudo systemctl restart beef-xss

Or run it manually.

5. Log in with new password

NOTE: No sudo Command if you’re in ROOT USER




#beef #kali2025 #ethicalhacking #resetpassword #cybersecurity #linux #cybersec #beefxss #kali #hackingtools #cybersecuritytools #infosec #zsecurity #educationalvideo #educationalpurposeonly