How to Install Metasploit on macOS

Metaspoit is a powerful tool and mostly is used for ethical hacking activities. This tool can cover all four stages in ethical hacking phases:

Information Gathering

Preparation and Attack Planning

Exploitation

Post-Exploitation

The first step download and install Metasploit framework [3].

curl -s https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
chmod 755 msfinstall && \
./msfinstall

Third step Postgres database for instant queries (optional).

service postgresql start

Last step Metasploit Framework

msfconsole

Optionally, I am adding Postgres service into startup script

systemctl enable postgresql

Reference:

#1 https://blog.rapid7.com/2019/01/10/metasploit-framework-5-0-released/
#2 https://www.offensive-security.com/kali-linux-vm-vmware-virtualbox-image-download/
#3 https://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/

Twitter @tomas_savenas