![Metasploit Penetration Testing Cookbook(Third Edition)](https://wfqqreader-1252317822.image.myqcloud.com/cover/212/36700212/b_36700212.jpg)
上QQ阅读APP看书,第一时间看更新
How to do it...
Download and launch the installer to install Metasploit Framework with all of its dependencies. Once installed, you can launch msfconsole as /opt/metasploit- framework/bin/msfconsole:
![](https://epubservercos.yuewen.com/74AACA/19470397601587006/epubprivate/OEBPS/Images/3f320a2c-ffd0-4383-8c27-5e2be0602115.png?sign=1738830941-MRUOgE1dbsEd7zyyhIssIEuemquY5Mcs-0-9e4a4a902e3ea2d1ba51c9b7509423f8)
The Metasploit Framework initial setup will help you set up a database and add Metasploit to your local PATH as shown:
$ /opt/metasploit-framework/bin/msfconsole
** Welcome to Metasploit Framework Initial Setup **
Please answer a few questions to get started.
Would you like to add msfconsole and other programs to your default PATH? yes
You may need to start a new terminal or log in again for this to take effect.
Would you like to use and setup a new database (recommended)? yes
Creating database at /Users/user/.msf4/db
Starting database at /Users/user/.msf4/db...success
Creating database users
Creating initial database schema
** Metasploit Framework Initial Setup Complete *