sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`
Part 2. Installing the Libraries
sudo apt-get install libpcre3-dev
sudo apt-get install libpcap0.8-dev
sudo apt-get install libnet1-dev
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install ncurses-bin
sudo apt-get install libncurses5-dev
sudo apt-get install libnet6-1.3-dev
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install zlib1g-dev
sudo apt-get install libltdl-dev
sudo apt-get install pango-graphite
sudo apt-get install pkg-config
sudo apt-get install libpango1.0-dev
sudo apt-get install libatk1.0-dev
sudo apt-get install libgtk2.0-dev
Part 3. Extras
sudo apt-get install autoconf
sudo apt-get install byacc
Part 4. The patch
(to download when you open the page go to up left corner, click on File and then Download.)
I downloaded it into ettercap main dir. So if you haven't - you should now copy the patch file in the ettercap main directory.
Part 5. Apply the patch
My ettercap folder is/was on my Desktop so when I opened a terminal I navigate to my desktop.
Get into ettercap folder.
Type in terminal:
patch -p1 < ettercap-0.7.4-autotools.patch
After the patching is done type we can continue with this:
In the terminal window you should see something like this:
libtoolize: copying file `libltdl/lt_dlloader.c'
libtoolize: copying file `libltdl/lt_error.c'
libtoolize: copying file `libltdl/ltdl.c'
libtoolize: copying file `libltdl/ltdl.h'
libtoolize: copying file `libltdl/slist.c'
libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.in'.
libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.in.
libtoolize: Consider using `AC_CONFIG_MACRO_DIR([libltdl/m4])' in configure.in.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
Part 7. Configure
In the guide it was shown this:
./configure --enable-plugins --enable-debug
I used this:
./configure --enable-plugins --enable-debug --enable-gtk
With these settings the install dir will be : /usr/local
When the configuration is done you will see this or something like this :
LIBPCAP ................ default
LIBNET ................. default
LIBSSL ................. default
NCURSES ................ default
GTK+ ................... yes
Debug mode ............. yes
Plugin support ......... yes
Passive DNS ............ yes
Perl regex in filters .. yes
Iconv UTF-8 support .... yes
Part 8. Fixing a line
So this was the most important part for me. As I wanted to have GTK (graphic interface) i had a problem where the making of the install was unable to read something so i was unable to install Ettercap with GTK.
Here is the salvation.
In terminal considering you are into Ettercap main directory, type this:
sudo gedit Makefile
so the text redactor will appear and you will need to find this line:
LIBS = -lresolv -lz -lpthread -lltdl -ldl -ldl
using the search function for example and change it with this:
LIBS = -lresolv -lz -lpthread -lltdl -ldl -ldl -lpcap -lnet -lssl -lcrypto -lpcre -lpanel -lmenu -lform -lncurses -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lfreetype -lfontconfig -lpango-1.0 -lgmodule-2.0 -latk-1.0 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lgthread-2.0
and then save the file.
NOTE: you can use your favorite text redactor for sure but the point here is using the sudo command to open it because the Makefile is locked for non-sudo usage.
Part 9. The ef_syntax.c file
If by some reasons you are missing "ef_syntax.c" file into "utils/etterfilter/" you can download it from here : https://docs.google.com/file/d/0B5pF...1MTk0NzYw/edit
and put it in the place.
Part 10. "make" and "make install" www.2cto.com
Now in terminal navigate to the Ettercap directory and type following commands:
If you don't get any errors till the end of "making" (as it should be), type the next command into the terminal:
sudo make install
after finishing you should have working Ettercap with GTK!
type in terminal: ettercap -G