Sign inSign up

mrecco/ettercap

By mrecco

Updated almost 7 years ago

Ettercap special build for in-docker use.

Image
1

2.8K

mrecco/ettercap repository overview

Ettercap

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! :)

Usage

Docker
docker run --rm -it           \
      --cap-add SYS_ADMIN     \
      --cap-add NET_ADMIN     \
      --network host          \
   mrecco/ettercap            \
      -TbqM arp               \
      -oi interface_name
Docker-compose
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

Preconfigure

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

Documentation

https://linux.die.net/man/8/ettercap [EN]

https://pentestmag.com/ettercap-tutorial-for-windows/ [EN]

https://kali.tools/?p=830 [RU]

Tag summary

Content type

Image

Digest

Size

6.5 MB

Last updated

almost 7 years ago

docker pull mrecco/ettercap