• 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

This Article Has Been Shared 601 Times!

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 WordPress on Ubuntu or Debian PC Guide

    Install WordPress on Ubuntu or Debian PC is actually very easy. Its just running some commands from Terminal and here is full guide with Screen shots to help.

  • Keyless Door Unlocking Mobile Cloud Based Apps : Gaining More Interest

    Keyless Door Unlocking Mobile Cloud Based Apps like Lockitron, ShareKey are growing interest from both the developers and the users. Let us have a deeper look.

  • Eight Tips for Secure Cloud

    Eight Tips for Secure Cloud are for are using the extremely useful services whose security are still regarded as uncertain. What users can do in this situation?

  • Red Hat OpenShift PaaS : Smart Guide to Host Your App

    Red Hat OpenShift PaaS has pre-configured one click installers for Frameworks, one click installers for WordPress, Drupal. Free for 50k visitors per month.

  • Install Open Journal Systems on Rackspace Cloud Sites

    Install Open Journal Systems on Rackspace Cloud Sites just like any other PHP MySQL based application in easy to follow steps.

Additionally, 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

  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023
  • What is COB LED? How LED Chip On Board Works January 20, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Metasploit on Ubuntu 16.04 LTS To Test Security," in The Customize Windows, July 12, 2017, January 27, 2023, https://thecustomizewindows.com/2017/07/install-metasploit-ubuntu-16-04-lts-test-security/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT