Sunday, May 12, 2013

HOWTO : BeEF and Metasploit Integration on Ubuntu Desktop 12.04 LTS

Step 1 :

nano beef/extensions/metasploit/config.yaml

Make change to "host", "callback_host" and "msf_path". Where the last entry at "msf_path" should be the path of the Metasploit.

It will look like this :

Remarks : you are not required to change the "host", you can keep it as However, you need to change the "callback_host" as it is the reverse connection IP address and it should be a public IP address.

Step 2 :

nano beef/config.yaml

Go to "extension:" and change the "false" to "true" under "metasploit".

It will look like this.

Step 3 :

Start Metasploit :

sudo /etc/init.d/metasploit start
cd /opt/metasploit/app
sudo msfconsole

Under the msfconsole :

load msgrpc ServerHost= Pass=abc123

Start BeEF :

cd beef

Point your Firefox to the following url :

Enter username and password for both "beef" to login.

Remarks :

Please note that the above IP address ( is just an example.

The BeEF site has a tutorial for browser autopwn with Metasploit. You can refer to here.

That's all! See you.