Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################
- # MSF Installation #
- ####################
- 1) Install dependicies
- $sudo apt-get install gpgv2 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 postgresql postgresql-contrib wget xsel zlib1g zlib1g-dev
- 2) Configure the postgres database
- $sudo su postgres
- $createuser msfuser -S -R -P
- $createdb msfdb -O msfuser
- $exit
- $sudo update-rc.d postgresql enable
- 3) Install & Configure RVM
- $gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 /*install gpg k*/
- $\curl -sSL https://get.rvm.io | bash -s stable --ruby /*install RVM*/
- $source ~/.rvm/scripts/rvm
- $gem install bundler
- 4) Download & Install Metasploit Framework
- $git clone https://github.com/rapid7/metasploit-framework.git
- $cd metasploit-framework/
- $rvm --install .ruby-version
- $bundle install
- $./msfconsole
- 5) Configure Metasploit & Postgres
- create a file called βdatabase.ymlβ within the β~/.msf4/β directory and paste in the contents below. Make sure to edit your password appropriately.
- [# Development Database
- development: &pgsql
- adapter: postgresql
- database: msfdb
- username: msfuser
- password: [PASSWORD]
- host: localhost
- port: 5432
- pool: 5
- timeout: 5
- # Production database -- same as dev
- production: &production
- <<: *pgsql
- # Test database -- not the same, since it gets dropped all the time
- test:
- <<: *pgsql
- database: msfdb]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement