Skip to content

Instantly share code, notes, and snippets.

@stephenlb
Last active August 29, 2015 14:12
Show Gist options
  • Save stephenlb/7ec1258c3c8c563dbfad to your computer and use it in GitHub Desktop.
Save stephenlb/7ec1258c3c8c563dbfad to your computer and use it in GitHub Desktop.
Creating a Metasploit Server
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Your Metasploit Server
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#
# Download VirtualBox: https://www.virtualbox.org/wiki/Downloads
# Download Ubuntu Server: http://www.ubuntu.com/download/server
#
# Create VirtalBox image named "Metasploit"
# Add Ubuntu ISO CD
# Follow Install Guide Below
#
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Aptitude Install Libs
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get -y install \
build-essential zlib1g zlib1g-dev \
libxml2 libxml2-dev libxslt-dev locate \
libreadline6-dev libcurl4-openssl-dev git-core \
libssl-dev libyaml-dev openssl autoconf libtool \
ncurses-dev bison curl wget postgresql \
postgresql-contrib libpq-dev \
libapr1 libaprutil1 libsvn1 \
libpcap-dev libsqlite3-dev
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Install Ruby with RVM
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
curl -sSL https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
rvm install ruby-1.9.3
ruby -v
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Metasploit Installation
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
git clone https://github.com/rapid7/metasploit-framework.git
cd metasploit-framework
sudo gem install bundle
bundle install
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
## Done!
## =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo -e "Metasploit Installed."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment