[MacPorts] #26526: ettercap-ng fails to show packet content in snow leopard
#26526: ettercap-ng fails to show packet content in snow leopard ------------------------------------+--------------------------------------- Reporter: mikel.izal@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ------------------------------------+--------------------------------------- The patch file patch-src__protocols__ec_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 -- Ticket URL: <https://trac.macports.org/ticket/26526> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26526: ettercap-ng fails to show packet content in snow leopard ------------------------------------+--------------------------------------- Reporter: mikel.izal@… | Owner: ultrix@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: ettercap-ng ------------------------------------+--------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => ultrix@… * port: => ettercap-ng Old description:
The patch file patch-src__protocols__ec_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
New description: The patch file patch-src__protocols__ec_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 -- -- Ticket URL: <https://trac.macports.org/ticket/26526#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26526: ettercap-ng fails to show packet content in snow leopard -------------------------------------+-------------------------------------- Reporter: mikel.izal@… | Owner: ultrix@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: ettercap-ng | -------------------------------------+-------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: r75489 -- Ticket URL: <https://trac.macports.org/ticket/26526#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts