Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Related configurations used by BeEF and metasploit associations in kali systems

Shulou Source: shulou.com Published: 2022-06-03 05:30:15 10月03日 Update

BeEF and metasploit are installed by default on the kali2.0 system, but they cannot be used together without being configured to start them by default, that is to say, the beEf framework cannot load metasploit, so how to configure so that beEf can load metasploit? Objectively, please look down.

1. Configure the config.yaml file of BeEF. The file path is / usr/share/beef-xss/config.yaml

Open the file with leafpad, pull it to the bottom of the file, look up, modify the metasploit configuration item, and change it to enable:true

Save and then close the file

2. Configure / usr/share/beef-xss/extensions/metasploit/config.yaml file, and modify the two ip addresses of the file. As shown in the figure below, the ip refers to the ip of the kali machine. Here, I configure it to 127.0.0.1, or you can configure it to kali actual ip, and then save and exit.

3. Start msf

To start msf for the first time, you need to type in the command to start the postgresql server, and the command is service postgresql restart

Then click msf in the left toolbar of kali to launch, as shown in the figure

Note: msf and BeEF must start msf first, otherwise msf cannot be loaded in beef

Then enter the following in the control side of msf, load the service, and the content is load msgrpc ServerHost=127.0.0.1 User=msf Pass=abc123, where ServerHost is the ip of the kali machine configured in step 2. Type the command as shown below.

4. Start BeEF

Click the BeEF icon on the left to start, and the command line interface prompts BeEF to open the default browser automatically after starting successfully, as shown in the following figure

The Username and Password in the browser page are both beef by default. After typing, click the login button to enter the BeEF management page.

Tags: Configuration files commands tools two content machines browsers pages services browsing input system success that is icons addresses actual objective Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information MySQL macOS Apple