Skip to content

Instantly share code, notes, and snippets.

@arrase
Created March 23, 2017 01:15
Show Gist options
  • Save arrase/906d31486eb5b66f5a6876d5c13e6f7b to your computer and use it in GitHub Desktop.
Save arrase/906d31486eb5b66f5a6876d5c13e6f7b to your computer and use it in GitHub Desktop.
Install script for Bettercap in Raspbian
#!/bin/bash
aptitude install rbenv git vim
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
read -d '' String <<"EOF"
# rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
EOF
# For new shells
echo -e "\n${String}\n" >> ~/.bashrc
# For current shell
eval "${String}"
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libpcap-dev
echo -e "gem: --no-document" > ~/.gemrc
CONFIGURE_OPTS="--disable-install-doc" rbenv install 2.2.2 --verbose
rbenv global 2.2.2
gem install bettercap
gem uninstall packetfu
gem install packetfu -v 1.1.11
bettercap --help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment