Jump to content

Updating ettercap NG-0.7.3 ->


Recommended Posts

Since I've been playing around with the OpenWRT toolchain (on a Kali Linux VM) I thought I would take a crack at updating the ettercap package to a more recent version.

Ettercap 0.7.5 was the first version to switch to 'cmake'. Currently building 'cmake' packages (outside of the source directory) with the OpenWRT toolchain is a mystery to me, so I settled on attempting to cross-compile the last non-cmake version, which is

All of this takes place on my Kali Linux VM, with the OpenWRT toolchain installed:

First I copied the ettercap-NG-0.7.3.tar.gz from /root/openwrt/attitude_adjustment/dl/ and placed it in a directory with a copy of ettercap-, then I ran this script:

rm -rf ./ettercap-NG-0.7.3/
rm -rf ./ettercap-
tar xvfz ./ettercap-NG-0.7.3.tar.gz
tar xvfz ./ettercap-
rm -rf ./ettercap-NG-0.7.3/include
cp -r ./ettercap- ./ettercap-NG-0.7.3/
cp -r ./ettercap- ./ettercap-NG-0.7.3/
rm -rf ./ettercap-NG-0.7.3/man
cp -r ./ettercap- ./ettercap-NG-0.7.3/
rm -rf ./ettercap-NG-0.7.3/plug-ins
cp -r ./ettercap- ./ettercap-NG-0.7.3/
rm -rf ./ettercap-NG-0.7.3/share
cp -r ./ettercap- ./ettercap-NG-0.7.3/
rm -rf ./ettercap-NG-0.7.3/src
cp -r ./ettercap- ./ettercap-NG-0.7.3/
rm -rf ./ettercap-NG-0.7.3/utils

cp -r ./ettercap- ./ettercap-NG-0.7.3/

..and then manually applied the patch files (found in /root/openwrt/attitude_adjustment/feeds/packages/net/ettercap/patches) for the ettercap-NG-0.7.3 (with the exception of the last one from patch file 003), renamed the directory from ettercap-NG-0.7.3 to ettercap- and then tar-ed and gziped the directory into a new ettercap- file and dropped that into "/root/openwrt/attitude_adjustment/dl/". Next I generated a new md5sum for this file (34f95caea07c47c31ae1f564f7734b8c) and lastly I updated the /root/openwrt/attitude_adjustment/feeds/packages/net/ettercap/Makefile, so the beginning of it looks like this:



...after all of that I ran 'make' and the toolchain generated the ettercap- file. Of course this package is unofficial. I'm not responsible if it doesn't work or ends up bricking your device. That being said, I'm running it without any issues so far. Ideally you should compile this package yourself; however if people want to try it, you may find it here:


To update to this version of ettercap, just scp the file over to your pineapple and then run:

opkg remove ettercap
opkg install ./ettercap-

Good luck,


Edited by Garland
Link to comment
Share on other sites

Looking at the ettercap changelog, you can see what switching to gains you:


First, the NG-0.7.4 (2005) update adds a radius dissector, so now there are 40 protocol dissectors, instead of 39. The (2011) update seems to fix several memory and buffer overflow issues, which is good thing.

If anyone is wishing to build from source, you may find my modified source files here:


Oh, and welcome to 2011... ;)


Edited by Garland
Link to comment
Share on other sites

Having spent a bit more time with this, I have sorted out exactly which patches are necessary to get to compile (where before I could only compile it by leaving all of the old build files from NG-0.7.3).

The issue was in the acinclude.m4 file, so I made a patch to correct that file.

Here is the Makefile, patches and source:


...and here is the resulting package:


I would test using this version of the package instead of the one I posted yesterday.

Thank you,


Edited by Garland
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...