Ettercap / ettercap

Ettercap Project
http://www.ettercap-project.org
GNU General Public License v2.0
2.28k stars 488 forks source link

FATAL : "arp:remote" and "-z" #1239

Open Raizo62 opened 9 months ago

Raizo62 commented 9 months ago

Hi

Is there a technical reason that ettercap doesn't want both the "remote" arp option and the "-z" option ?

In the man page, I don't see any explanation about this

LocutusOfBorg commented 8 months ago

if (EC_GBL_OPTIONS->silent)

Indeed, the list is not created if we are in silent mode

Do you want to comment the two lines above and try again? If it works, maybe we can consider uncommenting them...

Raizo62 commented 8 months ago

With the comment, ettercap stops and displays :

2 hosts added to the hosts list...

FATAL: ARP poisoning process cannot start.

Should we change the test here ? https://github.com/Ettercap/ettercap/blob/7bb2d7ac257ab86b57a3ec36cdcd5244975320a1/src/mitm/ec_arp_poisoning.c#L124

   /* create the list used later to poison the targets */
   if (EC_GBL_OPTIONS->silent && !EC_GBL_OPTIONS->load_hosts)
      ret = create_silent_list();
   else
      ret = create_list();
LocutusOfBorg commented 8 months ago

I don't know, maybe the create_silent_list is not working... please try to debug it