Menu

#67 DHCP spoofing fails in graphical mode

open
nobody
Bug (17)
5
2013-06-27
2012-10-04
No

Version: ettercap NG-0.7.4.2
Platform: Linux
Context: While teaching network security

With the same network, DHCP spoofing fails in graphical mode and succeeds in text mode.

In graphical mode, I select Unfied spoofing, then Mitm => DHCP spoofing and enter the same parameters as in text mode (address pool, netmask, and DNS server). Nothing happens, ettercap does not seem to see DHCP discover and does not answer them (verified in Wireshark).

command used in text mode : # ettercap -T -i eth1 -M dhcp:10.0.0.50-60/255.0.0.0/8.8.8.8).
command used in graphical mode : # ettercap -G

Other attacks like ARP spoofing work fine in graphical mode.

Network setup: victims = windows seven, router + nat + dhcp server = CISCO 2800, ettercap machine = linux ubuntu 10.4.

Discussion

  • Gianfranco Costamagna

    Hi Eric.

    Unfortunately there are two problems with your bug submission.

    First: ettercap project has moved on github [1] and the bug now is better if reported on github too (if you submit a patch is easy to ask for a pull request)
    Second: the version you are using is not mantained anymore (the main project has been inactive for 5 years with no upstream support and somebody on debian side pushed out two releases, I'm asking since in a year so many improvement has been done on ettercap to sync debian and every debian based distro to the new ettercap project) [2]

    So this is my opinion: please try ettercap_rc development branch from github, if the problem persists report the same problem on github issue and I'll be so glad to help you, unfortunately (fortunately) so many bugs reported are already fixed upstream and we have fixed other bugs after a bug submission (and sometimes with a patch attached :P)
    thanks for your report
    [1] https://github.com/Ettercap/ettercap
    [2] https://github.com/Ettercap/ettercap/issues/23

     
  • Eric Milam

    Eric Milam - 2012-10-04

    There is a versioning issue for sure. Please not if when you run ettercap it still references 2005, that is not our release.

    We have committed 0.7.5 on github which we help will alleviate the versioning issues for distros.

    Please note we have been approved as the upstream for all releases except Ubuntu at this point. Not sure why they are holding out...

    Best Regards
    Eric

     
  • Eric Bischoff

    Eric Bischoff - 2012-10-16

    Hi Gianfranco and Eric,

    and thank you for your help on this. I have followed your advice, and tried more recent version 0.7.5 in a Fedora 17 running in some virtual machine.

    The situation is worse: I can't get past the dialog that appears when I select "DHCP spoofing". No matter what I put in "IP pool (optonal)" field, I get two error messages, "DHCP spoofing parameter number 1 is incorrect." and "Incorrect number of token (///) in TARGET !!"

    I had a look at the source code : "///" characters are added automatically, so it should be enough to enter e.g. an IP address in this field. Sorry in advance if I misunderstood something.

    Eric

     
  • Gianfranco Costamagna

    Ok I think I've got a clue (not sure)
    please try to change the line
    snprintf(tmp, strlen(p)+4, "/%s//", p);
    into
    snprintf(tmp, strlen(p)+5, "/%s//", p);
    at
    ./src/mitm/ec_dhcp_spoofing.c:99

     
  • Eric Bischoff

    Eric Bischoff - 2012-10-16

    It will require me to recompile. I was using a package shipped with Fedora. Hold on, I will do it.

    (btw, "+4" seems okay - three slashes and one ending NUL are 4)

    Edit: uh-uh. Their source code is:
    snprintf(tmp, strlen(p)+3, "/%s/", p);
    After fixing it to
    snprintf(tmp, strlen(p)+4, "/%s//", p);
    the dialog works again.

    In any case, this Fedora package is rather strange! It is labeled 0.7.5, but the tarball inside of it is ettercap-0.7.4.1-erc-c796e5.tar.bz2! ettercap -v reports 0.7.5 though. Lazy packaging?

    This problem with Fedora being fixed, here are the good news: the DHCP spoofing works with 0.7.5 in graphical mode! Original problem solved.

    Summing things up:

    • This bug report is at the wrong place :-)
    • Ubuntu needs a more uptodate release
    • Fedora needs to fix this string parsing issue
    • original "DHCP spoofing fails in graphical mode" problem seems to be solved
     

    Last edit: Eric Bischoff 2012-10-16
  • Eric Bischoff

    Eric Bischoff - 2012-10-16

    See http://bugzilla.redhat.com/show_bug.cgi?id=867075 for the bug in Fedora Core 17.

    So, if I understood well, you guys will be providing us with a beautiful 0.7.5 release in Debian and Ubuntu in a short term? :-)

     

    Last edit: Eric Bischoff 2012-10-16
  • Eric Bischoff

    Eric Bischoff - 2013-06-27

    Same problem on Ubuntu raring, ettercap version 0.7.6.

     
  • Gianfranco Costamagna

    Could you please report on
    https://github.com/Ettercap/ettercap/issues

    it will be easier to track the bug down.

    thanks

     
  • Eric Bischoff

    Eric Bischoff - 2013-06-27

    Sure.

    I'll be giving it a few more tests first, perharps I can get nearer the problem before I report it.

     
  • Eric Bischoff

    Eric Bischoff - 2013-06-27

    OK, I got version 0.7.6 to work under ubuntu raring.

    The "trick" in the GUI version is to "start sniffing" before doing the MITM.

    Why is that necessary ????

     

    Last edit: Eric Bischoff 2013-06-28
  • Eric Bischoff

    Eric Bischoff - 2013-06-27

    Reported this last problem on github. See you there :-).

     

    Last edit: Eric Bischoff 2013-06-28

Log in to post a comment.

MongoDB Logo MongoDB