Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Related configurations used by BeEF and metasploit associations in kali systems

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report