首页 > 安全 > 工具软件 > 正文
install Ettercap 0.7.4 (compilation) on ubuntu (10.04-12.04)
2012-06-11 13:01:21     我来说两句      
收藏    我要投稿
Part 1.
 
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
 
https://docs.google.com/file/d/0B5pF...mZmE0Mjdl/edit
 
(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
 
Part 6.
 
After the patching is done type we can continue with this:
 
./autogen.sh
 
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.
running aclocal
running autoheader
running autoconf
running automake
 
 
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 :
 
Libraries :
 
LIBPCAP ................ default
LIBNET ................. default
LIBSSL ................. default
NCURSES ................ default
GTK+ ................... yes
 
Functionalities :
 
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:
 
cd src/
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:
 
make
 
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  
点击复制链接 与好友分享!回本站首页
分享到: 更多
您对本文章有什么意见或着疑问吗?请到论坛讨论您的关注和建议是我们前行的参考和动力  
上一篇:Maltego——互联网情报聚合工具初探
下一篇:使用Burpsuite检测SQL盲注
相关文章
图文推荐
排行
热门
文章
下载
读书

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训
版权所有: 红黑联盟--致力于做最好的IT技术学习网站