New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22368 (closed defect: worksforme)

Opened 2 years ago

Last modified 13 months ago

ettercap-ng gets Fatal error on Snow Leopard at start up

Reported by: randy@… Owned by: ultrix@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: haspatch Cc: hsivank@…, fjovel@…
Port: ettercap-ng

Description

The initial Arp queries to build the host list failed causing this error.

"FATAL: ARP poisoning needs a non empty hosts list."

The PCAP_TIMEOUT for MACOSX used in pcap_open_live() is a bit short (10 ms). I'm not sure why there wasn't a more generous value used.

I bumped it up to 1000 ms and all is well.

Some users may not have had a problem before. I did on two different macbook pros.

Attachments

Portfile-ettercap_ng.diff Download (452 bytes) - added by randy@… 2 years ago.
Portfile diff
patch_src_ec_capture.c Download (336 bytes) - added by randy@… 2 years ago.
new patch file

Change History

Changed 2 years ago by randy@…

Portfile diff

Changed 2 years ago by randy@…

new patch file

  Changed 2 years ago by hsivank@…

  • cc hsivank@… added

Cc Me!

  Changed 2 years ago by macsforever2000@…

  • keywords haspatch added
  • owner changed from macports-tickets@… to ultrix@…
  • cc ultrix@… removed

  Changed 2 years ago by fjovel@…

  • cc fjovel@… added

Cc Me!

  Changed 2 years ago by fjovel@…

hsivank, I tried looking for the file that contains the PCAP_TIMEOUT but I'm having problems finding it. Could you please tell me were to find the file that contains this? Is this the only tweak you had to do to fix this? Thank You!

follow-up: ↓ 6   Changed 2 years ago by hsivank@…

You can manually modify ec_capture.c but i'm not sure it is the better way.
Anyway you can find the build directory like this :

a/fetch and extract source :

port extract ettercap-ng

b/ get build directory

port work ettercap-ng

Or you can use the *classic* method
patch ettecap-ng's Porfile with Portfile-ettercap_ng.diff and copy patch_src_ec_capture.c in {ettecap-ng portfile directory}/files
(take a look at  http://guide.macports.org/#development.patches.applying)

After, simply launch

sudo port install ettercap-ng

ec_capture.c will be automatically modified ...

in reply to: ↑ 5   Changed 2 years ago by fjovel@…

Replying to hsivank@…:

You can manually modify ec_capture.c but i'm not sure it is the better way.
Anyway you can find the build directory like this : a/fetch and extract source : {{{ port extract ettercap-ng }}} Thank You!!! that solved the problem!!! b/ get build directory {{{ port work ettercap-ng }}} Or you can use the *classic* method
patch ettecap-ng's Porfile with Portfile-ettercap_ng.diff and copy patch_src_ec_capture.c in {ettecap-ng portfile directory}/files
(take a look at  http://guide.macports.org/#development.patches.applying) After, simply launch {{{ sudo port install ettercap-ng }}} ec_capture.c will be automatically modified ...

  Changed 2 years ago by fjovel@…

Hsivank thank you, the fix worked great!

  Changed 13 months ago by jmr@…

  • status changed from new to closed
  • resolution set to worksforme

Can't reproduce.

Note: See TracTickets for help on using tickets.