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 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 :
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
db_connect
Under the msfconsole :
load msgrpc ServerHost=127.0.0.1 Pass=abc123
Start BeEF :
cd beef
./beef
Point your Firefox to the following url :
http://192.168.1.102:3000/ui/panel
Enter username and password for both "beef" to login.
Remarks :
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.