Advertisement
Francinum

Untitled

Dec 9th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. # Install Oracle Java 8
  2. apt-get install software-properties-common
  3. add-apt-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" && apt-get update
  4. apt-get install oracle-java8-installer
  5.  
  6. # Installing Dependencies
  7. apt-get update
  8. apt-get upgrade
  9. apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev curl zlib1g-dev
  10.  
  11. # Installing a Proper Version of Ruby
  12. curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
  13. curl -L https://get.rvm.io | bash -s stable
  14. source ~/.rvm/scripts/rvm
  15. echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
  16. source ~/.bashrc
  17. RUBYVERSION=$(wget https://raw.githubusercontent.com/rapid7/metasploit-framework/master/.ruby-version -q -O - )
  18. rvm install $RUBYVERSION
  19. rvm use $RUBYVERSION --default
  20. ruby -v
  21.  
  22. # Install latest Nmap
  23. mkdir ~/Development
  24. cd ~/Development
  25. git clone https://github.com/nmap/nmap.git
  26. cd nmap
  27. ./configure
  28. make
  29. make install
  30. make clean
  31.  
  32. # Configuring Postgre SQL Server
  33. su postgres
  34. createuser msf -P -S -R -D
  35. createdb -O msf msf
  36. exit
  37. exit
  38.  
  39. # Installing Metasploit Framework
  40. cd /opt
  41. sudo git clone https://github.com/rapid7/metasploit-framework.git
  42. sudo chown -R `whoami` /opt/metasploit-framework
  43. cd metasploit-framework
  44. cd metasploit-framework
  45.  
  46. # If using RVM set the default gem set that is create when you navigate in to the folder
  47. rvm --default use ruby-${RUByVERSION}@metasploit-framework
  48.  
  49. gem install bundler
  50. bundle install
  51. vim cd metasploit-framework
  52.  
  53. # If using RVM set the default gem set that is create when you navigate in to the folder
  54. rvm --default use ruby-${RUByVERSION}@metasploit-framework
  55.  
  56. gem install bundler
  57. bundle install
  58. vim /opt/metasploit-framework/config/database.yml
  59. ***
  60. production:
  61. adapter: postgresql
  62. database: msf
  63. username: msf
  64. password:
  65. host: 127.0.0.1
  66. port: 5432
  67. pool: 75
  68. timeout: 5
  69. ***
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement