Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 796 Bytes

File metadata and controls

36 lines (26 loc) · 796 Bytes

ettercap graphical in docker

This project builds and runs ettercap-graphical in Docker, designed for use on OSX.

ettercap-graphical on OSX

build

docker build -t=pemcconnell/ettercap-graphical:latest .

run (OSX. XQuartz)

dependencies

  • socat
  • XQuartz (tested on 2.7.11)
  • Docker (tested on 18.09.0)
# ensure socat is running
(lsof -nP -i4TCP:6000 | tail -n1 | awk '{ print $1 }' | grep -q socat) || socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\" &

# grab local ip
export LOCALIP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')

docker run \
  --rm \
  -e "DISPLAY=$LOCALIP:0" \
  -ti \
  pemcconnell/ettercap-graphical:latest