Install Metasploit Framework in Ubuntu 14.04. Here is how to download and install Metasploit on Linux Ubuntu 14.04 system. Metasploit is the world’s most used testing software. The Metasploit penetration testing software is a collaboration of the open source community and Rapid7. It helps verify vulnerabilities and manage security assessments for a system.
The standard Metasploit installer uses a graphical interface which guides through the installation process. When Metasploit installation begins, the installer installs the dependencies and services that are necessary to run Metasploit software.
Before your start the installation, please ensure the following points:
- Download the Installer : Visit http://www.rapid7.com/products/metasploit/download.jsp to download the Linux 64-bit or 32-bit installer.
- Disable Your Antivirus Software and Any Firewalls : You must disable any antivirus software and local firewalls before you install or run Metasploit.
Install Metasploit
1. Open the command line terminal.
2. Download the installer.
For 64-bit systems:
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run
For 32-bit systems:
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-installer.run
3. Change the mode of the installer to be executable.
For 64-bit systems:
chmod +x /path/to/metasploit-latest-linux-x64-installer.run
For 32-bit systems:
chmod +x /path/to/metasploit-latest-linux-installer.run
4. Choose one of the options below to run the installer:
For 64-bit systems:
sudo /path/to/metasploit-latest-linux-x64-installer.run
For 32-bit systems:
sudo /path/to/metasploit-latest-linux-installer.run
5. When the setup window appears, click Forward to start the installation process.
6. Accept the license agreement and click Forward.
7. Choose an installation folder and click Forward.
8. Select Yes to register Metasploit as a service (recommended). Click Forward to continue.
9. When the Disable Anti-virus and Firewall window appears, verify that your machine does not have anti-virus software or firewall applications running. When done, click Forward.
10. Enter the port number that you want the Metasploit service to use. The default port is 3790. After entering it, click Forward to continue.
11. Enter the server name that will be used to generate the SSL certificate. Also enter the number of days that you want the SSL certificate to remain valid.
12. Click Forward to continue.
13. The Metasploit installation begins.
Once the installation is complete, a window appears and prompts you to launch the Metasploit Web UI. Here, you should go to https://localhost:3790 to launch the Metasploit Web UI to create a user account and to activate your Metasploit license key.
If you want to restart the Metasploit service, run the following command in terminal:
sudo bash /opt/metasploit/ctlscript.sh restart
Please note that you may need to restart your system to relaunch Metasploit for the first time.