Compiling and Installing Ettercap v0.8.0 and Latest Source

The latest version of Kali Linux comes with the most current version of Ettercap.  But some people are gluttons for punishment and still like to compile stuff themselves so see below.

Installed on Ubuntu 13.10.


$sudo apt-get -y install cmake libncurses5-dev libssl-dev libpcap-dev flex bison libgtk2.0-dev
$mkdir ~/source
$cd ~/source
~/source$ wget https://github.com/Ettercap/ettercap/archive/v0.8.0.tar.gz
~/source$ tar zxvf v0.8.0.tar.gz
~/source$ cd ettercap-0.8.0
~/source/ettercap-0.8.0$ mkdir build
~/source/ettercap-0.8.0$ cd build
~/source/ettercap-0.8.0/build$ cmake ../
~/source/ettercap-0.8.0/build$ make

Latest source (github 4.16.2014) on Ubuntu 14.04


$sudo apt-get -y install build-essential git cmake libncurses5-dev libssl-dev libpcap-dev flex bison libgtk2.0-dev libidn11-dev librtmp-dev
$mkdir ~/source
$cd ~/source
~/source$  git clone git://github.com/Ettercap/ettercap.git
~/source$ cd ettercap
~/source/ettercap$ mkdir build
~/source/ettercap$ cd build
~/source/ettercap/build$ cmake ../
~/source/ettercap/build$ make

Latest source (github 2.16.2017) on Xubuntu 16.04


$sudo apt-get -y install build-essential git cmake libncurses5-dev libssl-dev libpcap-dev flex bison libgtk2.0-dev libidn11-dev librtmp-dev libnet1-dev
$mkdir ~/source
$cd ~/source
~/source$  git clone git://github.com/Ettercap/ettercap.git
~/source$ cd ettercap
~/source/ettercap$ mkdir build
~/source/ettercap$ cd build
~/source/ettercap/build$ cmake ../
~/source/ettercap/build$ make
~/source/ettercap/build$ sudo make install

Any errors I encounter and their solution will be posted as Comments.

Twitter
Follow by Email
LinkedIn
YouTube
Google+
RSS

16 thoughts to “Compiling and Installing Ettercap v0.8.0 and Latest Source”

  1. 
    CMake Error at /usr/share/cmake-2.8/Modules/FindGTK2.cmake:414 (message):
      Could not find GTK2 include directory
    Call Stack (most recent call first):
      cmake/Modules/EttercapLibCheck.cmake:34 (find_package)
      CMakeLists.txt:95 (include)
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y install libgtk2.0-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  2. CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:1                                                                                       08 (message):
      Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FA                                                                                       ILURE_MESSAGE)
      /usr/share/cmake-2.8/Modules/FindCurses.cmake:159 (FIND_PACKAGE_HANDLE_STANDARD                                                                                       _ARGS)
      cmake/Modules/EttercapLibCheck.cmake:14 (find_package)
      CMakeLists.txt:95 (include)
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y install libncurses5-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  3. CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
      Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
      system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
      OPENSSL_INCLUDE_DIR)
    Call Stack (most recent call first):
      /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
      /usr/share/cmake-2.8/Modules/FindOpenSSL.cmake:313 (find_package_handle_standard_args)
      cmake/Modules/EttercapLibCheck.cmake:51 (find_package)
      CMakeLists.txt:95 (include)
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y install libssl-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  4. CMake Error at cmake/Modules/EttercapLibCheck.cmake:155 (message):
      libpcap not found!
    Call Stack (most recent call first):
      CMakeLists.txt:95 (include)
    
    -- Configuring incomplete, errors occurred!
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y install libpcap-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  5. -- Could NOT find BISON (missing:  BISON_EXECUTABLE)
    -- Could NOT find FLEX (missing:  FLEX_EXECUTABLE)
    CMake Error at utils/CMakeLists.txt:44 (BISON_TARGET):
      Unknown CMake command "BISON_TARGET".
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y flex bison
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  6. hey man thanks for helping
    but what about this error ??

    root@kali:~/source/ettercap-0.8.0/build# cmake ../CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
    Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)
    Call Stack (most recent call first):
    /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
    /usr/local/share/cmake-2.8/Modules/FindCurses.cmake:159 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
    cmake/Modules/EttercapLibCheck.cmake:14 (find_package)
    CMakeLists.txt:95 (include)

    — Configuring incomplete, errors occurred!
    See also “/root/source/ettercap-0.8.0/build/CMakeFiles/CMakeOutput.log”.
    See also “/root/source/ettercap-0.8.0/build/CMakeFiles/CMakeError.log”.

  7. Qassam,

    Based on that error the ncurses development files are not in your path or they are not installed. Curses provides the terminal based “GUI”. If you are using Debian/Ubuntu you can install from the repositories.

    $ sudo apt-get install libncurses5-dev

  8. Install the project...
    -- Install configuration: "Release"
    -- Installing: /usr/local/lib/libettercap.so
    CMake Error at src/cmake_install.cmake:50 (FILE):
      file INSTALL cannot copy file
      "/home/sean/ettercap-0.8.0/build/src/libettercap.so" to
      "/usr/local/lib/libettercap.so".
    Call Stack (most recent call first):
      cmake_install.cmake:37 (INCLUDE)
    

    Response from site admin: You need to be root to install compiled software so

    ~/source/ettercap-0.8.0/build$ sudo make install

  9. -- CURL support requested. Will look for curl >= 7.26.0
    -- Couldn't find a suitable system-provided version of Curl
    -- Using bundled version of Curl
    -- Could NOT find libidn
    CMake Error at bundled_deps/curl/CMakeLists.txt:29 (message):
      Cannot build bundled Curl without idn
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y libidn11-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  10. CMake Error at cmake/Modules/FindLibRTMP.cmake:12 (MESSAGE):
      Could NOT find rtmp development files
    Call Stack (most recent call first):
      bundled_deps/curl/CMakeLists.txt:32 (find_package)
    
    ~/source/ettercap-0.8.0/build$ make clean-all
    ~/source/ettercap-0.8.0/build$ sudo apt-get -y librtmp-dev
    ~/source/ettercap-0.8.0/build$ cmake ../
    ~/source/ettercap-0.8.0/build$ make
    ~/source/ettercap-0.8.0/build$ sudo make install
    

  11. In file included from /root/source/ettercap-0.8.0/include/ec_globals.h:8:0,
    from /root/source/ettercap-0.8.0/include/ec.h:52,
    from /root/source/ettercap-0.8.0/src/interfaces/text/ec_text.c:22:
    /root/source/ettercap-0.8.0/include/ec_network.h:7:20: fatal error: libnet.h: No such file or directory
    #include
    ^
    compilation terminated.
    src/interfaces/CMakeFiles/ec_interfaces.dir/build.make:62: recipe for target ‘src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text.c.o’ failed
    make[2]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text.c.o] Error 1
    CMakeFiles/Makefile2:516: recipe for target ‘src/interfaces/CMakeFiles/ec_interfaces.dir/all’ failed
    make[1]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/all] Error 2
    Makefile:127: recipe for target ‘all’ failed
    make: *** [all] Error 2

  12. “/root/source/ettercap-0.8.0/src/ec_sslwrap.c: In function ‘sslw_create_selfsigned’:
    /root/source/ettercap-0.8.0/src/ec_sslwrap.c:1065:13: error: dereferencing pointer to incomplete type ‘X509_EXTENSION {aka struct X509_extension_st}’
    ext->value->data[7] = 0xe7;
    ^~
    src/CMakeFiles/lib_ettercap.dir/build.make:1094: recipe for target ‘src/CMakeFiles/lib_ettercap.dir/ec_sslwrap.c.o’ failed
    make[2]: *** [src/CMakeFiles/lib_ettercap.dir/ec_sslwrap.c.o] Error 1
    CMakeFiles/Makefile2:385: recipe for target ‘src/CMakeFiles/lib_ettercap.dir/all’ failed
    make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
    Makefile:127: recipe for target ‘all’ failed
    make: *** [all] Error 2

Leave a Reply

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

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.