After installing Kali Linux
First step: Switch update source for System Software update, edit system source file: Vi/etc/apt/sources.list
Comment The official source, and add the domestic update source, because the domestic faster, my side is Kali Linux rolling (some people also called Kali Linux 2016.1), I chose the source of Zhong Ke (paste out the source address)
Deb Http://mirrors.ustc.edu.cn/kali kali-rolling main Non-free contrib
DEB-SRC Http://mirrors.ustc.edu.cn/kali kali-rolling main Non-free contrib
Deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib Non-free
DEB-SRC http://mirrors.ustc.edu.cn/kali-security kali-current/updates Main contrib Non-free
Then ESC:WQ
Execute the following command in turn for System Software update: Apt-get Update & Apt-get Upgrade
Apt-get Dist-upgrade
After reboot restart, we first switch to the beef directory below: cd/usr/share/beef-xss/
After switching in, there is a Config.yaml file, for editing: VI Config.yaml, the cursor moves to the bottom, to find
Set the Metasploit function module, enable to True, and then Wq save to exit and switch to the current directory: CD extensions/metasploit/
Edit
There are three places to configure:
Save exit: Wq then start the Msfconsole console, enter: Load MSGRPC serverhost=ip pass=abc123 here IP is set to your native IP, do not set to 127.0.0.1
Then reopen a window to switch to the Beef directory: cd/usr/share/beef-xss/then enter the./beef to start the beef
After that, the 292 Metasploit modules are loaded, then the beef can be opened to see the loaded Metasploit module.