bettercap on Parrot OS: the MITM framework
bettercap on Parrot OS is a powerful, extensible framework written in Go. It gives security researchers, red teamers and reverse engineers an all-in-one solution for network reconnaissance and man-in-the-middle attacks. The framework covers IPv4 and IPv6 networks, WiFi, Bluetooth Low Energy, wireless HID and CAN-bus devices, and it brings probing, spoofing, proxying, sniffing and fuzzing together in a single session.
This post covers what bettercap is, when a defender or tester would reach for it, how to install it on Parrot OS, the lawful limits that apply, a worked example against a lab target you own, and the defences that reduce the risk it demonstrates.
bettercap on Parrot OS: what it is and when to use it
bettercap is a complete, modular, portable and easily extensible man-in-the-middle framework. The project describes it as a Swiss Army knife for 802.11, Bluetooth Low Energy, wireless HID and Ethernet networks reconnaissance and attacks.
The feature set is broad. On WiFi it can scan networks, run deauthentication attacks, perform clientless PMKID association attacks and capture WPA/WPA2 handshakes. On IP networks it can actively probe for live hosts, read the ARP table, spoof ARP, DNS and DHCPv6 traffic, and proxy at packet, TCP and HTTP/HTTPS level with JavaScript plugins. The sniffer module can dissect major protocols and harvest credentials, and a fuzzer module sits alongside it.
A tester uses bettercap to answer a focused question: what does this network actually expose? Recon tells you which hosts exist, spoofing lets you see how they talk, and the sniffer turns cleartext traffic into evidence. A defender uses it the same way to understand the same exposure before an attacker does.
Installing bettercap on Parrot OS
Parrot Security OS packages bettercap in the ParrotSec repositories, so the standard install is:
sudo apt update
sudo apt dist-upgrade
sudo apt install bettercap
bettercap runs as root and launches an interactive session:
sudo bettercap
The Kali Linux equivalent uses the same pattern, with the package install handled by the distribution package manager.
Ethical and lawful use
Only run bettercap against a network you own or have written permission to test. In the UK, unauthorised interception or access can engage the Computer Misuse Act 1990 and the Investigatory Powers Act 2016. A man-in-the-middle position against someone else’s network is interception, not a grey area.
A capture can contain credentials, tokens and message content. Treat every capture file as sensitive. Store it encrypted, share it only with the client who owns the network, and delete it when the engagement ends. Agree the scope and the time window in writing before you start.
Worked example on a lab target you own
Lab target: a local VM on an isolated host-only network, such as the setup described in our guide to creating a pentesting environment with Parrot OS and Kali Linux on VirtualBox.
From the bettercap session, start host discovery:
net.probe on
net.recon on
net.show
Then start the sniffer and stop it when you are done:
set net.sniff.output lab-sniff.pcap
net.sniff on
net.sniff off
The session commands are documented in the bettercap net.sniff module reference. To work through the same capture with another tool, see our tcpdump on Kali Linux post.
For a wider look at credential capture on Linux, our responder on Kali Linux post covers the defender side of the same problem.
Defences and detections
Reduce the exposure that bettercap demonstrates, and the tool has less to show.
- Encrypt in transit. Use TLS for web and mail, and SSH for remote shells. An encrypted capture shows who talked to whom, not what they said.
- Segment the network. Keep sensitive systems on separate VLANs so a single capture point does not see everything.
- Monitor for spoofing. Watch for ARP anomalies and use dynamic ARP inspection on managed switches.
- Restrict the capability. Run bettercap with root privileges only where needed. A normal user should not be able to position a man-in-the-middle.
- Alert on unusual activity. Log unexpected proxy sessions or new capture targets, and treat unexpected interception on a server as an incident signal.
Sources
- bettercap project introduction — what the framework does and which networks it covers.
- bettercap GitHub repository — source, feature list and the GNU General Public License version 3 release terms.
- bettercap net.sniff module documentation — sniffer configuration and credential harvesting.







