Skip to content

Instantly share code, notes, and snippets.

@iam1980
Last active September 3, 2016 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iam1980/e020a4cf4a082fe23818e04ae268d74a to your computer and use it in GitHub Desktop.
Save iam1980/e020a4cf4a082fe23818e04ae268d74a to your computer and use it in GitHub Desktop.
Metasploit installer for Debian (Jessie)
#!/bin/bash
#
# Metasploit installer for Debian (Jessie) VPS.
# works out of the box on new 8.5 Debian servers.
#
# Do not run as root, RVM bundle will not work. Add a user, login with that user, and then run this script.
# Metasploit requires the following packages:
#
# apt-get -y install autoconf bison build-essential curl git-core libapr1 libaprutil1 libcurl4-openssl-dev libgmp3-dev libpcap-dev libpq-dev libreadline6-dev libsqlite3-dev libssl-dev libsvn1 libtool libxml2 libxml2-dev libxslt-dev libyaml-dev locate ncurses-dev openssl wget xsel zlib1g zlib1g-dev
#
# YMMV!
# https://medium.com/@iraklis
PURPLE='\033[1;35m'
NC='\033[0m'
cd ~
echo -e "${PURPLE}Cloning Metasploit from github${NC}"
echo -e "${PURPLE}------------------${NC} \n"
git clone https://github.com/rapid7/metasploit-framework.git
echo -e "${PURPLE}Installing RVM, this might take a while (5-10 mins)${NC}"
echo -e "${PURPLE}---------------------------------------------------${NC} \n"
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
cd ~/metasploit-framework
rvm --install .ruby-version
gem install bundler
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment