THE INFORMATION FROM THIS POINT I DID NOT CREATE MYSELF. I DO NOT CLAIM TO HAVE WRITTEN THIS NOR DO I CLAIM ANY OWNERSHIP OF SAID INFORMATION. THIS IS STRICTLY FOR INFORMATIONAL PURPOSES ONLY, ALL CREDIT GOES TO THE ORIGINAL GUIDE CREATOR AT hackerforhire.com
IN PREPARATION FOR METASPLOIT
- cd /usr/local/share/
- git clone https://github.com/rapid7/metasploit-framework.git
- for MSF in $(ls msf*); do ln -s /usr/local/share/metasploit-framework/$MSF /usr/local/bin/$MSF;done
- sudo chmod go+w /etc/profile
- sudo echo export MSF_DATABAST_CONFIG=/usr/local/share/metasploit-framework/config/database.yml >> /etc/profile
- /usr/local/Cellar/ruby22/2.2.5/bin/bundle install
After everything has finished installing open up a new terminal and type the following:
brew install nano && sudo nano /usr/local/share/metasploit-framework/config/database.yml
Now take a look at this example picture. Add the information that you see from the picture EXACTLY into your screen. Make sure you type the same password from the earlier "createuser" and "createdb" commands. To save and quit hit "Ctrl+O" "Enter" "Ctrl+X".