Compile and Install Ettercap on Debian

Notes to install Ettercap 0.7.4.1, 0.7.6 and 0.8.2 on Debian Wheezy.

Ettercap 0.7.4.1-Lazarus

Install dependencies (note: the checkinstall package is optional):

# apt-get install build-essential libtool libnet-dev libncurses5-dev libssl-dev \
libpcap-dev libgtk2.0-dev gawk flex bison checkinstall

Download Ettercap tarball from: http://sourceforge.net/projects/ettercap/files/ettercap/

$ wget http://prdownloads.sourceforge.net/ettercap/ettercap-0.7.4.1.tar.gz
$ tar xvfz ./ettercap-0.7.4.1.tar.gz && cd ./ettercap

Configure with debug enabled and compile:

$ ./configure --enable-debug
$ make

Make a deb package:

$ checkinstall -D --install=no --pkgname ettercap --pkgversion 0 --pkgrelease 7.4.1 \
--maintainer "[email protected]" --strip=no --stripso=no --addso=yes --nodoc

Switch to the root user and install:

# dpkg -i ettercap_0-7.4.1_amd64.deb

Start the nice GTK2 interface:

$ ettercap --gtk

Ettercap 0.7.6-Locard

Install dependencies (note: the checkinstall package is optional):

# apt-get install build-essential libtool libnet-dev libncurses5-dev libssl-dev \
libpcap-dev libgtk2.0-dev gawk flex bison checkinstall

Install cmake:

# apt-get install cmake libcurl4-gnutls-dev ghostscript

If you run into dependency problems:

# apt-get build-dep cmake

Download Ettercap tarball from: http://sourceforge.net/projects/ettercap/files/ettercap/

$ wget http://prdownloads.sourceforge.net/ettercap/ettercap-0.7.6.tar.gz
$ tar xvfz ./ettercap-0.7.6.tar.gz && cd ./ettercap-0.7.6

Configure and compile:

$ mkdir ./build && cd ./build
$ cmake ../
$ make

Make a deb package:

$ checkinstall -D --install=no --pkgname ettercap --pkgversion 0 --pkgrelease 7.6 \
--maintainer "[email protected]" --strip=no --stripso=no --addso=yes --nodoc

Switch to the root user and install:

# dpkg -i ettercap_0-7.6_amd64.deb

Start the nice GTK2 interface:

$ ettercap --gtk

Ettercap 0.8.2-Ferri

Install dependencies (note: the checkinstall package is optional):

# apt-get install build-essential libtool libnet-dev libncurses5-dev libssl-dev \
libpcap-dev libgtk2.0-dev gawk flex bison checkinstall

Install cmake:

# apt-get install cmake libcurl4-gnutls-dev ghostscript

If you run into dependency problems:

# apt-get build-dep cmake

Download Ettercap tarball from http://ettercap.github.io/ettercap/downloads.html:

$ wget https://github.com/Ettercap/ettercap/archive/v0.8.2.tar.gz
$ tar xvfz ./v0.8.2.tar.gz && cd ./ettercap-0.8.2

Configure and compile:

$ mkdir ./build && cd ./build
$ cmake ../
$ make

Make a deb package:

$ checkinstall -D --install=no --pkgname ettercap --pkgversion 0 --pkgrelease 8.2 \
--maintainer "[email protected]" --strip=no --stripso=no --addso=yes --nodoc

Switch to the root user and install:

# dpkg -i ettercap_0-8.2_amd64.deb

Start the nice GTK2 interface:

$ ettercap --gtk

6 thoughts on “Compile and Install Ettercap on Debian

  1. Crap dont work. Too many unmet dependencies. cmake a pain to install on debian. waste of time

    • Having read your comment, I’ve just compiled all three versions of ettercap described in the article on Debian Wheezy (7.11), and had no issues at all.

  2. # ettercap –gtk

    ettercap 0.7.4.1 copyright 2001-2011 ALoR & NaGA

    No protocol specified

    GTK+ failed to initialize. Is X running?

    no me funciona estoy en debian 8.6

Leave a Reply

Your email address will not be published. Required fields are marked *