6

I want to install metasploit and armitage on my ubuntu 16.04 LTS laptop running kernel 4.6

I've read blogs and posts on how to install it but the problem is is that they are outdated. The packages are not there anymore and or the commands dont work.

If anyone can give me an updated tutorial on how to install it that would be great. I also think other users that see this post and want to install it will also be thankful. Thanks.

DrGorilla.eth
  • 385
  • 1
  • 12
Adriaan
  • 591
  • 5
  • 7
  • 17

2 Answers2

10

Here is a blog post (untested but states it works for 16.04): http://www.darkoperator.com/installing-metasploit-in-ubunt/

OR

Install metasploit you can use automated installer:

64 Bit:

wget https://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run && wget https://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run.sha1 && echo $(cat metasploit-latest-linux-x64-installer.run.sha1)'  'metasploit-latest-linux-x64-installer.run > metasploit-latest-linux-x64-installer.run.sha1 && shasum -c metasploit-latest-linux-x64-installer.run.sha1 && chmod +x ./metasploit-latest-linux-x64-installer.run && sudo ./metasploit-latest-linux-x64-installer.run

(for 32bit version, same command but remove '-x64' from the filename/url)

Note

This should be ran on a virtual machine, dont ignore ssl errors/hash checksums (both are checked using the above script to ensure files being downloaded are from metasploit.com).

if wget failed makes sure you are using wget-ssl.

Mark Coker
  • 101
  • 1
  • 5
  • works, yes. But please, never directly run anything without confirming its contents, especially not as root.. – SaAtomic Jan 12 '17 at 08:21
  • @SaAtomic, it should always be run from a VM anyway, therefore root/normal user is pretty much irrelevant. – Mark Coker Jan 17 '17 at 22:52
  • 1
    Care to explain why it should be run from a VM anyways? I don't see it that way. – SaAtomic Jan 18 '17 at 08:50
  • 1
    1. Often analysing apps/code from untrusted sources 2. Snapshots 3. Separation of data and other resources 4. More control over data being exposed The list goes on... unless you only use the machine for pentesting (in which case you would use kali most likely not ubuntu anyways)... then why would you not want to seperate it. – Mark Coker Feb 26 '17 at 01:55
  • Simple answer of why to use a VM: To prevent damaging your own system. – SDsolar Sep 02 '17 at 01:59
-1

You can download the free version of Metasploit directly from their website: http://www.rapid7.com/products/metasploit/editions.jsp

Alternatively, install Katoolin from GitHub. This is a script that lets you install all the tools provided in Kali Linux. It has a very simple and good user guide and there are also many YouTube videos explaining its use.

https://github.com/LionSec/katoolin

terdon
  • 98,183
  • 15
  • 197
  • 293
  • Katoolin doesn't work with Ubuntu Xenial (16.04 LTS). – Fahad Yousuf Mar 02 '17 at 21:37
  • rapid7.com is definitely not Metasploit's website. – Mladen B. Dec 17 '17 at 10:59
  • 3
    @MladenB. please be careful when making claims. The download link from https://www.metasploit.com/ points to https://www.rapid7.com/products/metasploit/download/pro/, metasploit is made by Rapid7. – terdon Dec 18 '17 at 13:28
  • I sincerely apologize. My mistake. I just checked thoroughly and it appears I was wrong. The link looked alike the rapidshare of some sort... – Mladen B. Dec 19 '17 at 15:04