Advertisement
joemccray

MSF Fix Ruby

May 9th, 2015
1,266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. ##################
  2. # Setup you host #
  3. ##################
  4. sudo apt-get update
  5.  
  6. sudo apt-get upgrade
  7.  
  8. sudo apt-get install -y git curl vim build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev
  9. strategicsec
  10.  
  11. sudo apt-get purge ruby ruby1.9.1
  12. strategicsec
  13.  
  14. #########################################################
  15. # Add some env stuff to the bottom of your .bashrc file #
  16. #########################################################
  17. echo export RBENV_ROOT=\"${HOME}/.rbenv\" >> ~/.bashrc
  18. echo export PATH=\"~/.rbenv/bin:$PATH\" >> ~/.bashrc
  19. echo export PATH=\"~/.rbenv/shims:$PATH\" >> ~/.bashrc
  20.  
  21. echo if [ -d \"${RBENV_ROOT}\" ]; then >> ~/.bashrc
  22. echo export PATH=\"${RBENV_ROOT}/bin:${PATH}\" >> ~/.bashrc
  23. echo eval \"$(rbenv init -)\" >> ~/.bashrc
  24. echo fi >> ~/.bashrc
  25.  
  26.  
  27.  
  28. #################
  29. # Install rbenv #
  30. #################
  31. source ~/.bashrc
  32.  
  33. cd ~
  34. curl -L https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
  35.  
  36. rbenv install 2.1.5
  37.  
  38. rbenv global 2.1.5
  39.  
  40.  
  41.  
  42. #####################
  43. # Update Metasploit #
  44. #####################
  45. cd ~/toolz/
  46. sudo rm -rf metasploit
  47. strategicsec
  48. git clone https://github.com/rapid7/metasploit-framework.git
  49. mv metasploit-framework/ metasploit/
  50. cd ~/toolz/metasploit/
  51. sudo bash -c 'for MSF in $(ls msf*); do ln -s /home/strategicsec/toolz/metasploit/$MSF /usr/local/bin/$MSF;done'
  52. sudo chmod 777 /home/strategicsec/.msf4/*
  53. gem install metasploit_data_models -v '0.23.1'
  54. gem install bundler
  55. ./msfupdate
  56. ./msfconsole
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement