• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Metasploit on Ubuntu 16.04 LTS To Test Security

By Abhishek Ghosh July 12, 2017 8:38 am Updated on July 12, 2017

How To Install Metasploit on Ubuntu 16.04 LTS To Test Security

Advertisement

White hat or Black hat, hacking demands good grasp of all sysadmin works. The usage style we show on this website are intended for testing security of own servers – that is white hat way. We have a list of essential security tools for GNU/Linux servers. Metasploit framework needs Ruby, Postgre SQL, Java etc. Here is how to install Metasploit on Ubuntu 16.04 LTS to test security of servers.

Off Topic Warning : I am not teaching you moral science. Guides on this website are not designed to confer security a real black hat hacker needs in real situation. For black hat hacking you really need custom hardware and someone’s internet connection as long you are not working as Governmental agent for developing spyware, data theft etc. Goverment black hat can go up to sending some army and pushing few bullets inside your head upon suspicion, anger etc. Not funny.

 

How To Install Metasploit on Ubuntu 16.04 LTS To Test Security

 

We need to update, upgrade and install the dependencies :

Advertisement

---

Vim
1
2
3
apt update
apt upgrade
apt install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev curl zlib1g-dev

We will install Oracle Java :

Vim
1
2
3
sudo add-apt-repository -y ppa:webupd8team/java
apt update
apt install oracle-java8-installer

We need to install nmap, we can run :

Vim
1
apt install nmap

Or can build from source :

Vim
1
2
3
4
5
6
7
cd /opt
git clone https://github.com/nmap/nmap.git
cd nmap
./configure
make
sudo make install
make clean

We will install Ruby (using RVM; if you are new to Ruby, you can perform a search on how to install Ruby), I install in this way on server (I used same steps for Nikto & WPScan). Make sure all dependencies are installed :

Vim
1
apt install libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev

We can install with RVM, this is unsafe method, not really for production website for other purpose but unlikely to give any warning or issue, you’ll run as root :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cd ~
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --rails
source /usr/local/rvm/scripts/rvm
echo "source /usr/local/rvm/scripts/rvm" >> ~/.bashrc
source ~/.bashrc
rvm install 2.4.0
rvm use 2.4.0 --default
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
git clone https://github.com/wpscanteam/wpscan.git
cd wpscan
gem install bundler
bundle install --without test

Next step is preparing PosgreSQL, a detailed guide here :

Vim
1
https://fedoraproject.org/wiki/Metasploit_Postgres_Setup

In short, you need to run these commands, where msf is database name, username :

Vim
1
2
3
4
5
6
sudo -s
su postgres
createuser msf -P -S -R -D
createdb -O msf msf
exit
exit

As final step, install Metaexploit framework :

Vim
1
2
3
4
5
6
7
8
cd /opt
sudo git clone https://github.com/rapid7/metasploit-framework.git
sudo chown -R `whoami` /opt/metasploit-framework
cd metasploit-framework
rvm --default use ruby-${RUByVERSION}@metasploit-framework
gem install bundler
bundle install
sudo bash -c 'for MSF in $(ls msf*); do ln -s /opt/metasploit-framework/$MSF /usr/local/bin/$MSF;done'

Armitage is a Java tool for management from Desktop with GUI or VNC :

Vim
1
http://www.fastandeasyhacking.com

Of course there is official guide :

Vim
1
https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment

If you run :

Vim
1
msfconsole

How To Install Metasploit on Ubuntu 16-04 LTS To Test Security

Metaexploit framework will start and you’ll get a command prompt like this:

Vim
1
msf >

Tagged With install metasploit on ubuntu 16 , install metasploit ubuntu , metasploit ubuntu xenial , ubuntu 16 04 metasploit , install metasploit on ubuntu , установка metasploit-framework на ubuntu 16 04 LTS , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1834 GD6-P_PwgZutvpEPdOCjCh2A2YIRRcg1swn0eMBNGE3m4k1H4aLjm3isv_hyzd9W 4a0c09ed48a1849af1f539e36594a7a85490c1e3&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , how to use Metasploit on Ubuntu 16 04lts to hack , how to install metasploit using github in ubuntu 16 04 , how to install metasploit
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Metasploit on Ubuntu 16.04 LTS To Test Security

  • Install RVM on Rackspace Cloud Server (Ubuntu, PVHVM)

    Here is a step by step guide for the beginners on how to install RVM on Rackspace Cloud Server running Ubuntu 14.04, PVHVM version for Rails.

  • WordPress Security Test with Nmap NSE Scripts

    Periodic Security Checking, Particularly On Cloud Server Is Important. Here Is How To Perform WordPress Security Test With Nmap NSE Scripts.

  • Nmap on Windows : How to Use From CLI and GUI

    A port scanner is software that can be used to check which services in a system are working with TCP or UDP over the Internet protocol. The port scanner relieves the user of the work of examining and interpreting the response behavior of a system itself with a sniffer. Nmap is a free port scanner […]

  • Tools & Commands For Testing Brute Force Vulnerability (White Hat)

    After Securing Server, Basic Penetration Testing For Security is Needed. Here Are Few Tools & Commands For Brute Force Vulnerability Checking.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy