After attempting to get Metasploit to work nice with my desktop box (with limited success), I've decided to instead set it up on on separate box. However, it seems like the Metasploit community installer requires a GUI to install it, which I of course don't have on a server box I'm SSHed into. I do not want access to Metasploit framework only and really want the web UI, how can I still make this work?
This wil install Metasploit Framework, and not Metasploit Community. The commandline version is way more powerfull once you know you way around it. Some instructions can be found here.
The hard way
Darkoperator has an excellent write-up of this at his blog. Precise commands are at this blog, but I will sketch the idea.
- Install dependencies for Metasploit Framework
- Install Ruby
- Install Nmap (optional)
- Install & configure PostgreSQL server
- Install & configure the Metasploit framework
The somewhat easier way
Install PTF. This is a framework that was made to make installing pentesting tools easier. After the install, you can run
./ptf use modules/exploitation/metasploit. This will install all the dependecies and automagically set Metasploit up.