Skip to content

Instantly share code, notes, and snippets.

@peter76111
peter76111 / notes.md
Last active January 18, 2016 01:25 — forked from jmbarbier/notes.md
MITM tests

Solution AP + mitmproxy

via mitmproxy (pip install mitmproxy), sur pseudo point d'accès wifi par exemple :

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443  -j REDIRECT --to-port 8080
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80  -j REDIRECT --to-port 8080
sysctl -w net.ipv4.ip_forward=1
mitmproxy -T --host

Fait passer tout le traffic web par mitmproxy

@peter76111
peter76111 / testcase.sh
Created January 18, 2016 01:26 — forked from jmbarbier/testcase.sh
Gandi systemd / docker failure at reboot testcase.
#!/bin/bash
# Test restart d'une VM sur instance de base Gandi Debian 8 + install par défaut de docker
VM=dockersystemd
gandi vm create --datacenter LU --memory 1024 --cores 2 --ip-version 4 --hostname $VM --image "Debian 8 64 bits (HVM)" --size 10G
echo "Installing docker"
gandi vm ssh $VM 'apt-get update && apt-get install -y curl'
gandi vm ssh $VM 'curl -sSL https://get.docker.com/ | sh'