SHARE
TWEET

Untitled

a guest Aug 18th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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.    
  3. sudo su postgres
  4.    
  5. createuser msfuser -S -R -P
  6.    
  7. createdb msfdb -O msfuser
  8.    
  9. exit
  10.    
  11. sudo update-rc.d postgresql enable
  12.    
  13. gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
  14.    
  15. curl -sSL https://get.rvm.io | bash -s stable --ruby
  16.    
  17. source ~/.rvm/scripts/rvm
  18.    
  19. git clone https://github.com/rapid7/metasploit-framework.git
  20.    
  21. cd metasploit-framework/
  22.    
  23. rvm --install .ruby-version
  24.    
  25. gem install bundler
  26.    
  27. bundle install
  28.    
  29. ./msfconsole
  30.    
  31. # Development Database
  32. development: &pgsql
  33.   adapter: postgresql
  34.   database: msfdb
  35.   username: msfuser
  36.   password: [PASSWORD]
  37.   host: localhost
  38.   port: 5432
  39.   pool: 5
  40.   timeout: 5
  41.  
  42. # Production database -- same as dev
  43. production: &production
  44.   <<: *pgsql
  45.  
  46. # Test database -- not the same, since it gets dropped all the time
  47. test:
  48.   <<: *pgsql
  49.   database: msfdb
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top