Make change to "
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
127.0.0.1. 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 :
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
Under the msfconsole :
load msgrpc ServerHost=127.0.0.1 Pass=abc123
Start BeEF :
Point your Firefox to the following url :
Enter username and password for both "beef" to login.
Please note that the above IP address (192.168.1.102) 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.