百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> Kali下beEF关联metasploit的攻击模块
分享文章到:

Kali下beEF关联metasploit的攻击模块

发布时间:01/15 来源: 浏览: 关键词:
本文章来为各位介绍一篇关于Kali下beEF关联metasploit的攻击模块的教程,希望这篇文章能够为大家带来帮助,具体如下。
beef_thumb.png

首先我们需要了解下beEF和metasploit的几个目录,

beEF的目录在:/usr/share/beef-xss下,

metasploit的两个目录分别是:/opt/metasploit 与 /usr/share/metasploit-framework

一、进入

root@kali:/usr/share/beef-xss#

二、使用vim编辑器打开

root@kali:/usr/share/beef-xss# vim config.yaml

找到113行,修改false 为true,然后保存
112         metasploit:
113             enable: false 改成true
 

三、进入

root@kali:/usr/share/beef-xss/extensions/metasploit#

编辑 config.yaml 文件,将内容中127.0.0.1换成你的机器地址,

1 #
2 # Copyright (c) 2006-2014 Wade Alcorn – wade@bindshell.net
3 # Browser Exploitation Framework (BeEF) – http://beefproject.com
4 # See the file ‘doc/COPYING’ for copying permission
5 #
6 # Enable MSF by changing extension:metasploit:enable to true
7 # Then set msf_callback_host to be the public IP of your MSF server
8 #
9 # Ensure you load the xmlrpc interface in Metasploit
10 # msf > load msgrpc ServerHost=10.211.55.2 Pass=abc123
11 # Please note that the ServerHost parameter must have the same value of host     and callback_host variables here below.
12 # Also always use the IP of your machine where MSF is listening.
13 beef:
14     extension:
15         metasploit:
16             name: ‘Metasploit’
17             enable: true
18             host: “192.168.34.220”
19             port: 55552
20             user: “msf”
21             pass: “abc123”
22             uri: ‘/api’

四、如何加载;

msf > load msgrpc ServerHost=192.168.34.220 Pass=abc123
[*] MSGRPC Service:  192.168.34.220:55552
[*] MSGRPC Username: msf
[*] MSGRPC Password: abc123
[*] Successfully loaded plugin: msgrpc
msf >

五、启动BeeF

root@kali:~# cd /usr/share/beef-xss/
root@kali:/usr/share/beef-xss# ./beef
[17:28:28][*] Bind socket [imapeudora1] listening on [0.0.0.0:2000].
[17:28:28][*] Browser Exploitation Framework (BeEF) 0.4.4.9-alpha
[17:28:28]    |   Twit: @beefproject
[17:28:28]    |   Site: http://beefproject.com
[17:28:28]    |   Blog: http://blog.beefproject.com
[17:28:28]    |_  Wiki: https://github.com/beefproject/beef/wiki
[17:28:28][*] Project Creator: Wade Alcorn (@WadeAlcorn)
[17:28:30][*] Successful connection with Metasploit.
[17:28:42][*] Loaded 293 Metasploit exploits.
[17:28:43][*] BeEF is loading. Wait a few seconds…

beef
打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有4人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板