Linux之安裝ettercap

首先忍抽,ettercap安裝時需要4個依賴包积瞒,而且安裝包里面也已經(jīng)提供了
執(zhí)行:sudo yum groupinstall "Development tools" 源碼安裝軟件就需要安裝這個

一、下載解壓

可用wget下載

二、vim INSTALL查看需要的依賴項(xiàng)

 #### Bundled libraries  
 Ettercap now bundles the following libraries with the source distribution:  
   libnet 1.1.6  
   curl 7.41.0  
   luajit 2.0.3  
   check 0.9.14  
[wyb@localhost ettercap-0.8.2]$ cd bundled_deps/  
[wyb@localhost bundled_deps]$ ls  
check  curl  libnet  luajit

三、安裝依賴包

  1. 安裝check
[wyb@localhost check]$ cd check-0.9.14
[wyb@localhost check-0.9.14]$ ls
[wyb@localhost check-0.9.14]$ ./configure 
[wyb@localhost check-0.9.14]$ make
[wyb@localhost check-0.9.14]$ sudo make install
  1. 安裝curl
[wyb@localhost check-0.9.14]$ cd ..
[wyb@localhost curl-7.41.0]$ cd curl/
[wyb@localhost curl-7.41.0]$ cd curl-7.41.0
[wyb@localhost curl-7.41.0]$ make
[wyb@localhost curl-7.41.0]$ sudo make install
  1. 安裝libnet
[wyb@localhost curl-7.41.0]$ cd ../../libnet/
[wyb@localhost libnet]$ tar -zxvf libnet-1.1.6.tar.gz
[wyb@localhost libnet]$ cd libnet-1.1.6
[wyb@localhost libnet-1.1.6]$ ./configure 
[wyb@localhost libnet-1.1.6]$ make
[wyb@localhost libnet-1.1.6]$ sudo make install
  1. 安裝luajit
[wyb@localhost luajit]$ tar -zxvf LuaJIT-2.0.3.tar.gz 
[wyb@localhost luajit]$ make
[wyb@localhost luajit]$ sudo make install
  1. 安裝ettercap

     [wyb@localhost ettercap-0.8.2]$ cd ettercap-0.8.2 
     [wyb@localhost ettercap-0.8.2]$ mkdir build                   
     [wyb@localhost ettercap-0.8.2]$ cd build  
     [wyb@localhost build]$ cmake ../    *cmake ettercap時提示未安裝cmake*  
     -bash: cmake: command not found  
     [wyb@localhost build]$ sudo yum install cmake   *安裝cmake*  
     [wyb@localhost build]$ cmake ../    *提示未安裝curses*  
     -- The C compiler identification is GNU 4.4.7  
     -- Check for working C compiler: /usr/bin/cc  
     -- Check for working C compiler: /usr/bin/cc -- works  
     .....  
     .....  
     CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):  
       Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)  
     .....  
     .....  
     [wyb@localhost build]$ yum search curses    *查找curses*  
     Loaded plugins: fastestmirror, refresh-packagekit, security  
     Determining fastest mirrors  
      * base: mirrors.yun-idc.com  
      * extras: mirrors.opencas.cn  
      * updates: mirrors.btte.net
     ============================= N/S Matched: curses   ==============================  
     ncurses.x86_64 : Ncurses support utilities  
     ncurses-devel.i686 : Development files for the ncurses library  
     ncurses-devel.x86_64 : Development files for the ncurses library  
     ncurses-libs.x86_64 : Ncurses libraries  
     ncurses-libs.i686 : Ncurses libraries  
     ncurses-static.x86_64 : Static libraries for the ncurses library  
     ocaml-curses.x86_64 : OCaml bindings for ncurses    
     ocaml-curses-devel.x86_64 : Development files for ocaml-curses  
     ncurses-base.x86_64 : Descriptions of common terminals  
     ncurses-term.x86_64 : Terminal descriptions  
       Name and summary matches only, use "search all" for everything.  
     [wyb@localhost build]$ sudo yum install ncurses ncurses-devel   *安裝ncurses開發(fā)包*  
     [wyb@localhost build]$ rm -rf *     *清除上次cmake產(chǎn)生的文件*  
     [wyb@localhost build]$ cmake ../    *出錯,缺少依賴包GTK*  
     -- The C compiler identification is GNU 4.4.7  
     -- Check for working C compiler: /usr/bin/cc  
     ......  
     ......  
     CMake Error at /usr/share/cmake/Modules/FindGTK2.cmake:429 (message):  
       Could not find GTK2 include directory  
     ....  
     ....  
     [wyb@localhost build]$ yum search gtk  
     Loaded plugins: fastestmirror, refresh-packagekit, security  
     Loading mirror speeds from cached hostfile  
      * base: mirrors.yun-idc.com  
     .....  
     .....  
     gtk2.x86_64 : The GIMP ToolKit (GTK+), a library for creating GUIs for X  
     gtk2.i686 : The GIMP ToolKit (GTK+), a library for creating GUIs for X  
     gtk2-devel.i686 : Development files for GTK+   
     .... 
     ....  
     [wyb@localhost build]$ sudo yum install gtk2 gtk2-devel *安裝gtk及開發(fā)包* 
     [wyb@localhost build]$ rm -rf *     *清除上次cmake產(chǎn)生的文件*  
     [wyb@localhost build]$ cmake ../    *缺少依賴包OpenSSL*  
     -- The C compiler identification is GNU 4.4.7  
     -- Check for working C compiler: /usr/bin/cc  
     -- Check for working C compiler: /usr/bin/cc -- works  
     -- Detecting C compiler ABI info  
     -- Detecting C compiler ABI info - done  
     -- Check if the system is big endian  
     .....  
     .....  
     CMake Error at /usr/share/cmake/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)    
     .....  
     .....  
     [wyb@localhost build]$ yum search openssl   *查找openssl*  
     [wyb@localhost build]$ sudo yum install openssl openssl-devel   *安裝openss及其開發(fā)包*  
     [wyb@localhost build]$ rm -rf *     *清除上次cmake產(chǎn)生的文件*  
     [wyb@localhost build]$ cmake ../    *依賴libpcap*  
     ......  
     ......  
     -- Looking for inet_aton  
     -- Looking for inet_aton - found  
     CMake Error at cmake/Modules/EttercapLibCheck.cmake:191 (message):  
       libpcap not found!  
     ....  
     ....  
     [wyb@localhost build]$ yum search libpcap   *查找libpcap*  
     Loaded plugins: fastestmirror, refresh-packagekit, security  
     Loading mirror speeds from cached hostfile  
      * base: mirrors.yun-idc.com   
      * extras: mirrors.opencas.cn  
      * updates: mirrors.btte.net  
     ============================= N/S Matched: libpcap =============================  
     libpcap-devel.i686 : Libraries and header files for the libpcap library  
     libpcap-devel.x86_64 : Libraries and header files for the libpcap library  
     libpcap.x86_64 : A system-independent interface for user-level packet capture  
     libpcap.i686 : A system-independent interface for user-level packet capture  
       Name and summary matches only, use "search all" for everything.  
     [wyb@localhost build]$ sudo yum install libpcap-devel   *安裝libpcap-devel*  
     [wyb@localhost build]$ rm -rf *     *清除上次cmake產(chǎn)生的文件*  
     [wyb@localhost build]$ cmake ../    *cmake成功*  
     [wyb@localhost build]$ make *make*  
     ....  
     ....  
     Linking C executable etterlog  
     [100%] Built target etterlog  
     Scanning dependencies of target man  
     [100%] Built target man  
     [wyb@localhost build]$ sudo make install    *make install*  
     .....  
     .....   
     -- Installing: /usr/local/share/man/man8/ettercap_curses.8  
     -- Installing: /usr/local/share/man/man8/ettercap-pkexec.8  
     -- Installing: /usr/local/share/man/man5/etter.conf.5  
     [wyb@localhost build]$ cd  
     [wyb@localhost ~]$ ettercap -v  *查看版本且能查看俗冻,證明安裝成功*  
     ettercap 0.8.2 copyright 2001-2015 Ettercap Development Team  
     ettercap 0.8.2  
     [wyb@localhost ~]$
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市牍颈,隨后出現(xiàn)的幾起案子迄薄,更是在濱河造成了極大的恐慌,老刑警劉巖煮岁,帶你破解...
    沈念sama閱讀 221,198評論 6 514
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件讥蔽,死亡現(xiàn)場離奇詭異,居然都是意外死亡画机,警方通過查閱死者的電腦和手機(jī)冶伞,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,334評論 3 398
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來步氏,“玉大人响禽,你說我怎么就攤上這事。” “怎么了芋类?”我有些...
    開封第一講書人閱讀 167,643評論 0 360
  • 文/不壞的土叔 我叫張陵隆嗅,是天一觀的道長。 經(jīng)常有香客問我侯繁,道長胖喳,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 59,495評論 1 296
  • 正文 為了忘掉前任巫击,我火速辦了婚禮,結(jié)果婚禮上精续,老公的妹妹穿的比我還像新娘坝锰。我一直安慰自己,他們只是感情好重付,可當(dāng)我...
    茶點(diǎn)故事閱讀 68,502評論 6 397
  • 文/花漫 我一把揭開白布顷级。 她就那樣靜靜地躺著,像睡著了一般确垫。 火紅的嫁衣襯著肌膚如雪弓颈。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 52,156評論 1 308
  • 那天删掀,我揣著相機(jī)與錄音翔冀,去河邊找鬼。 笑死披泪,一個胖子當(dāng)著我的面吹牛纤子,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播款票,決...
    沈念sama閱讀 40,743評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼控硼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了艾少?” 一聲冷哼從身側(cè)響起卡乾,我...
    開封第一講書人閱讀 39,659評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎缚够,沒想到半個月后幔妨,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 46,200評論 1 319
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡谍椅,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,282評論 3 340
  • 正文 我和宋清朗相戀三年陶冷,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片毯辅。...
    茶點(diǎn)故事閱讀 40,424評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡埂伦,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出思恐,到底是詐尸還是另有隱情沾谜,我是刑警寧澤膊毁,帶...
    沈念sama閱讀 36,107評論 5 349
  • 正文 年R本政府宣布,位于F島的核電站基跑,受9級特大地震影響婚温,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜媳否,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,789評論 3 333
  • 文/蒙蒙 一栅螟、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧篱竭,春花似錦力图、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,264評論 0 23
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至吕喘,卻和暖如春赘那,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背氯质。 一陣腳步聲響...
    開封第一講書人閱讀 33,390評論 1 271
  • 我被黑心中介騙來泰國打工募舟, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人闻察。 一個月前我還...
    沈念sama閱讀 48,798評論 3 376
  • 正文 我出身青樓胃珍,卻偏偏與公主長得像,于是被迫代替她去往敵國和親蜓陌。 傳聞我的和親對象是個殘疾皇子觅彰,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,435評論 2 359

推薦閱讀更多精彩內(nèi)容