Opened 14 years ago

Last modified 13 years ago

#26526 closed defect

ettercap-ng fails to show packet content in snow leopard — at Version 1

Reported by: mikel.izal@… Owned by: ultrix@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: ettercap-ng

Description (last modified by mf2k (Frank Schima))

The patch file patch-srcprotocolsec_tcp.c in rttercap-ng 0.7.3_3 make it build in snow leopard but breaks packet decoding. The pointer to tcp header is bad calculated and the bad session content data is shown.

It is easy to fix. This line in the patch

+   opt_end = (u_char *)(tcp + tcp->off * 4);

should be changed to something like

+   opt_end = (u_char *)((u_chat *)tcp + tcp->off * 4);

With this change it works right. To check it launching the program with

sudo ettercap -T -z //80

has to display correct session HTTP content

Change History (1)

comment:1 Changed 14 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to ultrix@…
Port: ettercap-ng added
Note: See TracTickets for help on using tickets.