Opened 14 years ago
Last modified 13 years ago
#26526 closed defect
ettercap-ng fails to show packet content in snow leopard — at Initial Version
Reported by: | mikel.izal@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.1 |
Keywords: | Cc: | ||
Port: | ettercap-ng |
Description
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
Note: See
TracTickets for help on using
tickets.