歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> CentOS下安裝ettercap

CentOS下安裝ettercap

日期:2017/3/6 9:42:37   编辑:學習Linux

CentOS下安裝ettercap


CentOS下安裝ettercap


ettercap
ettercap下載地址
http://ettercap.sourceforge.net/download.php

下載好之後解壓出來,進入到解壓目錄

#tar zxvf  ettercap-NG-0.7.3.tar.gz#cd ettercap-NG-0.7.3

閱讀README

# vim README

MANDATORY: //安裝必須依賴的

  • libpcap >= 0.8.1
  • libnet >= 1.1.2.1
  • libpthread
  • zlib

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

百度雲分享三個必須依賴的lib文件 libpcap-1.7.4.tar.gz libnet-1.1.2.1.tar.gz zlib-1.2.8.tar.xz 下載到本地之後解壓出來進入目錄,一個一個安裝

# ./configure# make# make install

注意:.tar.xz的解壓命令是

# xz -d [filename].tar.xz# tar xvf [filename].tar

如果不安裝會有類似的提示

configure: error: libpcap not found configure: error: libpcap not found

確定都裝上之後,繼續進入ettercap的目錄進行安裝

[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]#

繼續錯誤提示: configure: error: Package requirements (gtk+-2.0 >= 2.0.0 pango >= 1.0 atk >= 1.0) were not met. gtk+-2.0、pango、atk,這三個包不符合要求,可能是版本太低。

查到gtk+的安裝方法,按下面順序一個一個裝:

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)

還得自己一個包一個包的去搜,然後下載下來安裝。如果不嫌麻煩的可以采用上面的11個步驟。

這裡提供一條代碼安裝的,不過這個方法按道理說不是很嚴謹。

# yum install gtk*

等待安裝完畢之後再重新執行./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]#

如果依賴庫的問題都沒有了的話,會出現這個提示 表示目前系統支持的函數庫和功能。 如果想擁有全部的功能,可以查看README文檔,把裡面的可選組件都裝上。

接著執行make和make install

[root@localhost ettercap-NG-0.7.3]# make&&make install

如果運行ettercap出現下面的內容,表示安裝成功了。

[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]#

開始折騰吧 ^_^


http://xxxxxx/Linuxjc/1134374.html TechArticle

Copyright © Linux教程網 All Rights Reserved