[MacPorts] #26526: ettercap-ng fails to show packet content in snow leopard

MacPorts noreply at macports.org
Sat Sep 18 12:54:12 PDT 2010


#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


More information about the macports-tickets mailing list