Ettercap special build for in-docker use.
2.8K
Special build for in-docker use for ettercap project. Arp-spoofing module ideal work for present configuration!
Dont be shy to contribute it or me! :)
docker run --rm -it \
--cap-add SYS_ADMIN \
--cap-add NET_ADMIN \
--network host \
mrecco/ettercap \
-TbqM arp \
-oi interface_name
version: '3.0'
services:
ettercap:
container_name: hack-ettercap
image: mrecco/ettercap:latest
command:
- "-TbqM"
- "arp"
- "-oi"
- "interface_name"
network_mode: host
pid: host
# privileged: true
cap_add:
- NET_ADMIN
- SYS_ADMIN
stop_grace_period: 3s
You need to prepare host mashine for this trick. Use it smart!!!
# Say kernel "lets forward packets!"
echo 1 > /proc/sys/net/ipv4/ip_forward
# Say firewall "lets nat forward connections"
iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -j MASQUERADE
https://linux.die.net/man/8/ettercap [EN]
Content type
Image
Digest
Size
6.5 MB
Last updated
almost 7 years ago
docker pull mrecco/ettercap