How To Install bettercap on Debian 12

Learn how to install bettercap on Debian 12 with this tutorial. bettercap is Complete, modular, portable and easily extensible MITM framework

Introduction

In this tutorial we learn how to install bettercap on Debian 12.

What is bettercap

bettercap is:

The Swiss Army knife for 802.11, BLE, IPv4 and IPv6 networks reconnaissance and MITM attacks.

bettercap is a powerful, easily extensible and portable framework written in Go which aims to offer to security researchers, red teamers and reverse engineers an easy to use, all-in-one solution with all the features they might possibly need for performing reconnaissance and attacking WiFi networks, Bluetooth Low Energy devices, wireless HID devices and Ethernet networks.

Main Features:

  • WiFi networks scanning, deauthentication attack, clientless PMKID association attack and automatic WPA/WPA2 client handshakes capture.
  • Bluetooth Low Energy devices scanning, characteristics enumeration, reading and writing.
  • 2.4Ghz wireless devices scanning and MouseJacking attacks with over-the-air HID frames injection (with DuckyScript support).
  • Passive and active IP network hosts probing and recon.
  • ARP, DNS, NDP and DHCPv6 spoofers for MITM attacks on IPv4 and IPv6 based networks.
  • Proxies at packet level, TCP level and HTTP/HTTPS application level fully scriptable with easy to implement javascript plugins.
  • A powerful network sniffer for credentials harvesting which can also be used as a network protocol fuzzer.
  • A very fast port scanner.
  • A powerful REST API with support for asynchronous events notification on websocket to orchestrate your attacks easily.
  • A very convenient web UI.
  • More! (https://www.bettercap.org/modules/)

This package contains a Swiss Army knife for 802.11, BLE and Ethernet networks reconnaissance and attacks.

There are three methods to install bettercap on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install bettercap Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install bettercap using apt-get by running the following command:

sudo apt-get -y install bettercap

Install bettercap Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install bettercap using apt by running the following command:

sudo apt -y install bettercap

Install bettercap Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install bettercap using aptitude by running the following command:

sudo aptitude -y install bettercap

How To Uninstall bettercap on Debian 12

To uninstall only the bettercap package we can use the following command:

sudo apt-get remove bettercap

Uninstall bettercap And Its Dependencies

To uninstall bettercap and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove bettercap

Remove bettercap Configurations and Data

To remove bettercap configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge bettercap

Remove bettercap configuration, data, and all of its dependencies

We can use the following command to remove bettercap configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge bettercap

Dependencies

bettercap have the following dependencies:

References

Summary

In this tutorial we learn how to install bettercap package on Debian 12 using different package management tools: apt, apt-get and aptitude.