Install ettercap in CentOS
Ettercap
Http://ettercap.sourceforge.net/download.php
Decompress the package and go to the decompressed directory.
#tar zxvf ettercap-NG-0.7.3.tar.gz#cd ettercap-NG-0.7.3
Read README
# vim README
MANDATORY: // required for Installation
- Libpcap> = 0.8.1
- Libnet> = 1.1.2.1
- Libpthread
- Zlib
OPTIONAL: // The following options are OPTIONAL.
To enable plugins:-libltdl (part of libtool)
To have perl regexp in the filters:-libpcre
To support SSH and SSL decryption:-openssl 0.9.7
For the cursed GUI:-ncurses> = 5.3
For the GTK + GUI:-pkgconfig> = 0.15.0-Glib> = 2.2.2-Gtk +> = 2.2.2-Atk> = 1.2.4-Pango> = 1.2.3
Baidu cloud share three must be dependent on the lib file libpcap-1.7.4.tar.gz libnet-1.1.2.1.tar.gz zlib-1.2.8.tar.xz after downloading to the local decompress it into the directory, one by one install
# ./configure# make# make install
Note: The decompression command for. tar. xz is
# xz -d [filename].tar.xz# tar xvf [filename].tar
If you do not install it, a similar prompt will be displayed.
Configure: error: libpcap not found
After you confirm that all the settings are installed, go to the ettercap directory to install them.
[root@localhost ettercap-NG-0.7.3]# ./configure.........configure: error: Package requirements (gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0) were not met.Consider adjusting the PKG_CONFIG_PATH environment variable if youinstalled software in a non-standard prefix.Alternatively you may set the GTK_CFLAGS and GTK_LIBS environment variablesto avoid the need to call pkg-config. See the pkg-config man page formore details.[root@localhost ettercap-NG-0.7.3]#
Continue error prompt:Configure: error: Package requirements (gtk +-2.0> = 2.0.0 pango> = 1.0 atk> = 1.0) were not met. gtk +-2.0, pango, and atk packages do not meet the requirements. The version may be too low.
Check the installation method of gtk + and install it one by one in the following order:
1) pkg-config (pkg-config Site) 2) GNU make (GNU make Site) 3) JPEG, PNG and TIFF image libraries (GTK + Site) 4) freeType (FreeType Site) 5) fontconfig (fontconfig Site) 6) GNU libiconv library (if your system doesn't have iconv () (GNU libiconv Site) 7) GNU gettext (if your system doesn't have gettext () (GTK + Site) 8) GLib (GTK + Site) 9) Pango (GTK + Site) 10) ATK (GTK + Site) 11) GTK + (GTK + Site)
You have to search for a package and then download and install it. If it is not too troublesome, you can use the above 11 steps.
Here we provide a piece of code for installation, but this method is not very rigorous in principle.
# yum install gtk*
Run the command again after the installation is complete./configure
[root@localhost ettercap-NG-0.7.3]# ./configure.........ettercap has been configured as follow...================================================== Install directory: /usr/localLibraries : LIBPCAP ................ default LIBNET ................. default LIBSSL ................. default NCURSES ................ NO GTK+ ................... yesFunctionalities : Debug mode ............. no Plugin support ......... no Passive DNS ............ no Perl regex in filters .. no Iconv UTF-8 support .... yes==================================================[root@localhost ettercap-NG-0.7.3]#
If none of the dependent library problems occur, this prompt indicates the function libraries and functions currently supported by the system. If you want to have all the functions, you can view the README document and install all the optional components in it.
Run make and make install.
[root@localhost ettercap-NG-0.7.3]# make&&make install
If the following content appears when you run ettercap, the installation is successful.
[Root @ localhost ettercap-NG-0.7.3] # ettercap
Ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA
Please select an User Interface
[Root @ localhost ettercap-NG-0.7.3] #
Start tossing it! ^_^