Attack module of beef associated Metasploit under Kali

Source: Internet
Author: User

First we need to know the next few directories of beef and Metasploit,

Beef's Directory in:/USR/SHARE/BEEF-XSS,

Metasploit's two directories are:/opt/metasploit and/usr/share/metasploit-framework

First, enter

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

Second, use the VIM editor to open

root@kali:/usr/share/beef-xss# Vim Config.yaml

Find 113 rows, modify false to True, and then save
112 Metasploit:
113 Enable:false changed to True

Third, enter

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

Edit the Config.yaml file and replace the 127.0.0.1 in the content with your machine address.

1 #
2 # Copyright (c) 2006-2014 Wade alcorn–wade@bindshell.net
3 # Browser Exploitation Framework (BeEF) –http://beefproject.com
4 # 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 is the public IP of your MSF server
8 #
9 # Ensure you load the Xmlrpc interface in Metasploit
# MSF > Load MSGRPC serverhost=10.211.55.2 pass=abc123
# Please note this serverhost parameter must have the same value of host and Callback_host variables here below .
# Also always use the IP of your machine where MSF is listening.
Beef:
Extension:
Metasploit:
Name: ' Metasploit '
Enable:true
18Host: "192.168.34.220"
port:55552
User: MSF
Pass: "Abc123"
URI: '/api '

Four, how to load;

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
MSF

Five, start 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 ...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.