This project builds and runs ettercap-graphical in Docker, designed for use on OSX.
docker build -t=pemcconnell/ettercap-graphical:latest .
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