ruby - Problems Installing Metasploit Framework on Ubuntu -
i have encountered 3 problems while following this guide installing metasploit framework on ubuntu , debian:
1) after installing proper version of ruby, there command given installing ruby libraries: sudo gem install bundler
. when typed in , hit enter, says "command not found". after researching on internet, decided remove sudo
, try again. i've entered gem install bundler
, worked fine. cause problems?
2) after installing metasploit framework, there command given install required gems , versions:
cd metasploit-framework bundle install
but when tried that, got error:
rbenv: version '2.1.6' not installed
i don't know next (but moved on).
3) due previous problems, in end when executed msfconsole
command, said
could not find rake-10.4.2 in of sources.
run bundle install install missing gems
but bundle install doesn't either, because when run says
could not locate gemfile or .bundle/directory
any appreciated.
edit: when asked person himself had written guide, regarding this, told me select version of ruby had installed either rebind or rvm before installing bundler, , run bundle install. please list commands so? new linux!
step 1 :
sudo apt-get update sudo apt-get upgrade
step 2 :
install dependent packages
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
step 3 :
install ruby
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
step 4 :
install , configure postgresql
sudo apt-get install postgresql sudo -s su postgres createuser msf -p -s -r -d createdb -o msf msf exit
step 5 :
install metasploit framework
cd /opt sudo git clone https://github.com/rapid7/metasploit-framework.git sudo chown -r `whoami` /opt/metasploit-framework cd metasploit-framework cd metasploit-framework sudo bash -c 'for msf in $(ls msf*); ln -s /opt/metasploit-framework/$msf /usr/local/bin/$msf;done'
still if facing issue, can download iso or vm image kali wesbite
Comments
Post a Comment