Installation

BetterCap comes packaged as a Ruby gem, meaning you will need a Ruby interpreter ( >= 1.9 ) and a RubyGems environment installed. Moreover, it is fully compatible with GNU/Linux, Mac OS X and OpenBSD platforms.

Dependencies

All Ruby dependencies will be automatically installed through the GEM system, however some of the GEMS need native libraries in order to compile:

  1. sudo apt-get install build-essential ruby-dev libpcap-dev

Installing on Kali Linux

Kali Linux has bettercap packaged and added to the kali-rolling repositories. To install bettercap and all dependencies in one fell swoop on the latest version of Kali Linux:

  1. apt-get update
  2. apt-get install bettercap

Stable Release ( GEM )

You can easily install bettercap using the gem install GEMNAME command:

  1. gem install bettercap

To update to a newer release:

  1. gem update bettercap

If you have trouble installing bettercap read the following sections about dependencies.

Note

If you installed bettercap using a RVM installation, you will need to execute it using rvmsudo:
rvmsudo bettercap ...
Otherwise, if you installed it globally ( sudo gem install bettercap ) you can use sudo:
sudo bettercap ...

Development Release

Instead of the stable release, you can also clone the source code from the github repository, this will give you all the latest and experimental features, but remember that you’re using a potentially unstable release:

  1. git clone https://github.com/evilsocket/bettercap
  2. cd bettercap
  3. bundle install
  4. gem build bettercap.gemspec
  5. sudo gem install bettercap*.gem

Quick Start

Once you’ve installed bettercap, quickly get started with:

  1. bettercap --help

The help menu will show you every available command line option and a few examples.