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.

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.

  • 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
  • Often analysing apps/code from untrusted sources
  • Snapshots
  • Separation of data and other resources
  • 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