Raspberry Pi 3 – Metasploit Installation on Raspbian

  1. open a terminal window
  2. sudo apt update
  3. sudo apt upgrade
  4. sudo apt -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev locate libreadline6-dev libcurl4-openssl-dev git-core libssl-dev libyaml-dev openssl autoconf libtool ncurses-dev bison curl wget postgresql postgresql-contrib libpq-dev libapr1 libaprutil1 libsvn1 libpcap-dev afm libffi-dev
  5. sudo apt install sqlite3 libsqlite3-dev
  6. sudo apt install git-core postgresql curl ruby nmap gem
  7. sudo apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev
  8. sudo gem install wirble sqlite3-ruby sqlite3 bundler pgarrayparser afm nokogiri ffi pg
  9. cd /opt
  10. git clone https://github.com/rapid7/metasploit-framework.git
  11. cd metasploit-framework
  12. bundle install
    • If you get any errors it should say which packages need to be reinstalled, you can reinstall them via apt or gem and then try to run ‘bundle install’ again
  13. ./msfconsole
    • must be run from the /opt/metasploit-framework folder