Bettercap

About

Bettercap is "The Swiss Army knife for WiFi, Bluetooth Low Energy, wireless HID hijacking and IPv4 and IPv6 networks reconnaissance and MITM attacks."

Bettercap Homepage

Bettercap Github

Install

There's multiple ways to install bettercap, they have documentation here. I typically install from source. Currently having Go installed.

go install github.com/bettercap/bettercap@latest

sudo ~/.go/bin/bettercap -eval "caplets.update; ui.update; q"

Usage

Running bettercap in the terminal will allow you to run bettercap via the commandline and will be met with the bettercap prompt. Edit the default credentials for the web interface at /usr/local/share/bettercap/caplets/http-ui.cap and/or /usr/local/share/bettercap/caplets/http-ui.cap. You can also run via the web interface via sudo bettercap -caplet http-ui OR sudo bettercap -caplet https-ui. Then you can go to http://127.0.0.1/ OR https://127.0.0.1/.

Command Line

Change interface mac and put interface into Monitor mode

sudo ifconfig (interface) down
sudo macchanger -r (interface)
sudo ifconfig (interface) up
sudo airmon-ng start (interface)

Start bettercap with the interface that is now in monitor mode

bettercap -iface wlan0mon

Scan for Accesspoints with wifi.recon on We can also show the manufacturer of the WiFi with:

set wifi.show.manufacturer true
wifi.show

If I want to see the access points in descending order of the clients connected to it:

set wifi.show.sort clients desc
wifi.show

We can also sort the SSID Alphabetically:

set wifi.show.sort essid asc
wifi.show

Now lets set how many SSIDs we want to see:

set wifi.show.limit X
wifi.show

Last updated