Created
June 3, 2015 14:32
-
-
Save crmaxx/e47d4088ecdbe4be2c1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev curl zlib1g-dev | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
source ~/.bashrc | |
rvm install 2.1.6 | |
rvm use 2.1.6 --default | |
ruby -v | |
sudo apt-get install nmap | |
sudo -s | |
su postgres | |
createuser msf -P -S -R -D | |
createdb -O msf msf | |
exit | |
exit | |
cd /opt | |
sudo git clone https://github.com/crmaxx/metasploit-framework.git | |
sudo chown -R `whoami` /opt/metasploit-framework | |
cd metasploit-framework | |
git fetch origin | |
git checkout -b staging/rails-4.2 origin/staging/rails-4.2 | |
git pull origin staging/rails-4.2 | |
rvm --default use ruby-2.1.6@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' | |
sudo nano /opt/metasploit-framework/config/database.yml | |
production: | |
adapter: postgresql | |
database: msf | |
username: msf | |
password: | |
host: 127.0.0.1 | |
port: 5432 | |
pool: 75 | |
timeout: 5 | |
sudo sh -c "echo export MSF_DATABASE_CONFIG=/opt/metasploit-framework/config/database.yml >> /etc/profile" | |
source /etc/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment