BeEF is installed by default in Kali distribution. It is located in the /usr/share/beef-xss/ directory. By default, it is not integrated with the Metasploit framework. To integrate BeEF, you will need to perform the following steps:
- Edit the main configuration file located at /usr/share/beef-xss/config.yaml to read the following:
metasploit:
enable:true
- Edit the file located at /usr/share/beef-xss/extensions/metasploit/config.yml. You need to edit the host, callback_host, and os 'custom', path lines to include your IP address and the location for the Metasploit framework. A correctly edited config.yml file is shown in the following screenshot:
- Start msfconsole, and load the msgrpc module, as shown in the following ...