LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

beef

Browser exploitation framework for penetration testing

TLDR

Start BeEF server with default configuration
$ beef-xss
copy
Start BeEF with a custom configuration file
$ beef-xss -c [path/to/config.yaml]
copy
Start BeEF on a specific interface and port
$ beef-xss -x [interface] -p [port]
copy
Display help information
$ beef-xss -h
copy
Stop BeEF service
$ beef-xss-stop
copy

SYNOPSIS

beef-xss [-c config] [-x interface] [-p port] [-v]

DESCRIPTION

BeEF (Browser Exploitation Framework) is a penetration testing tool focused on exploiting vulnerabilities in web browsers. Unlike traditional network-based tools, BeEF targets the client-side attack surface by injecting JavaScript hooks into web pages.When a target browser loads a page containing the BeEF hook script, it establishes a persistent connection to the BeEF control panel. Security professionals can then execute various command modules against the hooked browser, testing for vulnerabilities like XSS, session hijacking, and social engineering attacks.The tool provides a web-based UI accessible at http://127.0.0.1:3000/ui/panel by default. The hook script is served at http://\<IP\>:3000/hook.js and must be embedded in target pages via a script tag.

PARAMETERS

-c _config_

Path to a custom YAML configuration file
-x _interface_
Network interface to bind the server
-p _port_
Port number to listen on (default: 3000)
-v
Enable verbose output
-h, --help
Display help and available options. On first run, BeEF prompts to set a password if default credentials are detected.

CONFIGURATION

/etc/beef-xss/config.yaml

Main configuration file on Kali Linux installations. Controls network settings, credentials, and enabled extensions.
/usr/share/beef-xss/config.yaml
Alternative location for the main configuration file in package installations.

INSTALL

sudo apt install beef
copy
yay -S beef
copy

CAVEATS

BeEF is intended exclusively for authorized penetration testing. Using it without explicit written permission from the target system owner is illegal and may result in severe legal consequences. Always ensure proper authorization before conducting any browser exploitation tests.

HISTORY

BeEF was originally created by Wade Alcorn in 2006 as a research project to demonstrate browser security weaknesses. It became an open-source project and gained popularity in the security community. The tool is now maintained by a community of contributors and is included in security-focused Linux distributions like Kali Linux.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid