The Blog

Install Metasploit on Kali Linux or Raspbian – Raspberry Pi

- 2 Comments. in IT Security

Metasploit framework is very powerful platform that can be use for  penetration testing and many more… Please, follow the instructions below to install it on your raspberry Pi preferably version 2 or 3 model B. You will have to do some little adjustments according to your OS whether it is Raspbian or kali.  We will talk more about the framework and it capabilities in another post. Right now crack on installing the framework.

  • open a terminal window
  • sudo apt update
  • sudo apt upgrade
  • 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
  • sudo apt install sqlite3 libsqlite3-dev
  • sudo apt install git-core postgresql curl ruby nmap gem
  • sudo apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev
  • sudo gem install wirble sqlite3-ruby sqlite3 bundler pgarrayparser afm nokogiri ffi pg
  • cd /opt
  • git clone
  • cd metasploit-framework
  • sudo gem install bundler
  • sudo 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
  • ./msfconsole
    • must be run from the /opt/metasploit-framework folder

By Don Krys
IT Security Consultant
@ Techno|BOSS Intl.


  1. Graham - 30 May 2019

    Thanks for the post, very helpful *****

    • Don Krys - 31 May 2019

      You’re welcome!

Leave a Comment

Your email address will not be published.