Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
openatelier:projet:installation_mitmproxy_sur_raspberrypi [2020/02/04 18:07] emoc créée |
openatelier:projet:installation_mitmproxy_sur_raspberrypi [2022/11/16 23:23] (Version actuelle) emoc |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | {{tag>raspberry-pi proxy réseau wifi gk}} | ||
+ | |||
====== Installation mitmproxy sur raspberry pi ====== | ====== Installation mitmproxy sur raspberry pi ====== | ||
+ | |||
+ | mitmproxy est un proxy http/https transparent et interactif. | ||
+ | |||
+ | Il peut être utilisé pour intercepter, inspecter, modifier et rejouer du traffic web HTTP/1, HTTP/2, WebSockets, ou d'autres protocoles utilisant SSL/TLS | ||
+ | |||
+ | ===== Sources ===== | ||
+ | https://mitmproxy.org/ | ||
+ | |||
+ | https://www.dinofizzotti.com/blog/2019-01-09-running-a-man-in-the-middle-proxy-on-a-raspberry-pi-3/ | ||
+ | |||
+ | ===== Installation sur un Raspberry3 ===== | ||
+ | Le test a été effectué sur un raspberry3 avec la distribution raspbian en version [[https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-09-30/2019-09-26-raspbian-buster-lite.zip | Buster lite]] (debian 10) | ||
+ | |||
+ | Il faut effectuer une installation de base et activer ssh, puis effectuer les actions décrites dans le blog de [[https://www.dinofizzotti.com/blog/2019-01-09-running-a-man-in-the-middle-proxy-on-a-raspberry-pi-3/|dinofizzotti.]] | ||
+ | |||
+ | Effectuer au préalable les installations sous root | ||
+ | <code> | ||
+ | apt install hostapd isc-dhcp-server | ||
+ | apt install python3 | ||
+ | apt install python3-pip | ||
+ | apt install nftables | ||
+ | apt install lsof | ||
+ | </code> | ||
+ | |||
+ | ==== Tests ==== | ||
+ | <code> | ||
+ | mitmproxy --version | ||
+ | mitmweb --mode transparent --web-port 9090 --web-iface 0.0.0.0 &>> /var/log/mitmweb.log | ||
+ | </code> | ||