Ettercap / ettercap

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

SSLStrip plugin on OS X not loading #447

Closed julian-weinert closed 10 years ago

julian-weinert commented 10 years ago

I have the current OS X version installed using mac ports. In my etter.conf I just uncommented the "quick and dirty" redir_command_on / off and the ec_uid and ec_gid set to zero (the default value didn't work either).

When I try to load the plugin, I get the following error message:

Activating sslstrip plugin...
SSLStrip plugin: bind 80 on 59272
SSLStrip: redir_command_on had non-zero exit status (127): [ipfw add set 21 fwd 127.0.0.1,59272 tcp from any to any 80 in via en1]
SSLStrip: plugin load failed: Could not set up HTTP redirect
LocutusOfBorg commented 10 years ago

do you have ipfw command on your mac?

julian-weinert commented 10 years ago

Yes, it's build in by default. When I read the configuration of ipfw, I can see, that many ports got added. To me it seems as port 80 is the only problematic one, but I'm not sure.

LocutusOfBorg commented 10 years ago

oh indeed, the root privileges got dropped after the init. This SHOULD be fixed in commit https://github.com/Ettercap/ettercap/commit/19ff3bc5cc60488149852df0ba992fabb87e8d77

anyway as a workaround can you please just set ec_uid = 65534 # nobody is the default ec_gid = 65534 # nobody is the default

to 0 and try again?

julian-weinert commented 10 years ago

As I stated in the report, I already have them set to 0...

LocutusOfBorg commented 10 years ago

ok sorry, can you please try to build and reproduce with the latest git in debug mode and send here the log?

julian-weinert commented 10 years ago

My first install was using mac ports. When I try to compile it on my own, it doesn't work and fails with a linker error.

Here is my make log, it's quite long, but I can't attach a text file here...:

Scanning dependencies of target ec_interfaces
[  0%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/__/ec_interfaces.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_interfaces.c:30:4: warning: implicit declaration of function 'set_daemon_interface' is invalid in C99 [-Wimplicit-function-declaration]
   set_daemon_interface();
   ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_interfaces.c:37:4: warning: implicit declaration of function 'set_text_interface' is invalid in C99 [-Wimplicit-function-declaration]
   set_text_interface();
   ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_interfaces.c:48:4: warning: implicit declaration of function 'set_curses_interface' is invalid in C99 [-Wimplicit-function-declaration]
   set_curses_interface();
   ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_interfaces.c:59:4: warning: implicit declaration of function 'set_gtk_interface' is invalid in C99 [-Wimplicit-function-declaration]
   set_gtk_interface();
   ^
4 warnings generated.
[  1%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text.c.o
[  1%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text_conn.c.o
[  1%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text_display.c.o
[  2%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text_plugin.c.o
[  2%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/text/ec_text_profile.c.o
[  3%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/daemon/ec_daemon.c.o
[  3%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg.c.o
[  3%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_compound.c.o
[  4%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_debug.c.o
[  4%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_dialog.c.o
[  4%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_dynlist.c.o
[  5%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_error.c.o
[  5%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_file.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/curses/widgets/wdg_file.c:600:17: warning: incompatible pointer types assigning to 'void (*)(char *, char *)' from 'void (*)(const char *, char *)' [-Wincompatible-pointer-types]
   ww->callback = callback;
                ^ ~~~~~~~~
1 warning generated.
[  6%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_input.c.o
[  6%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_list.c.o
[  6%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_menu.c.o
[  7%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_panel.c.o
[  7%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_percentage.c.o
[  8%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_scroll.c.o
[  8%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/widgets/wdg_window.c.o
[  8%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses.c.o
[  9%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_filters.c.o
[  9%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_help.c.o
[  9%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_hosts.c.o
[ 10%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_live.c.o
[ 10%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_logging.c.o
[ 11%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_mitm.c.o
[ 11%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_offline.c.o
[ 11%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_plugins.c.o
[ 12%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_start.c.o
[ 12%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_targets.c.o
[ 13%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_view.c.o
[ 13%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_view_connections.c.o
[ 13%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/curses/ec_curses_view_profiles.c.o
[ 14%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:334:26: warning: incompatible pointer types passing 'void (void)' to parameter of type 'GtkFunction' (aka 'gboolean (*)(gpointer)') [-Wincompatible-pointer-types]
            gtk_idle_add(gtkui_refresh_host_list,NULL);
                         ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/gtk-2.0/gtk/gtkmain.h:184:47: note: passing argument to parameter 'function' here
guint      gtk_idle_add            (GtkFunction        function,
                                                       ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:611:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/_File",         "<shift>F",   NULL,             0, "<Branch>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:614:76: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/File/sep1",     NULL,         NULL,             0, "<Separator>" },
                                                                           ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:616:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/_Sniff",        "<shift>S",   NULL,             0, "<Branch>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:619:76: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/Sniff/sep2",    NULL,         NULL,             0, "<Separator>" },
                                                                           ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:621:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/_Options",                    "<shift>O", NULL, 0, "<Branch>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:622:77: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/Options/Unoffensive", NULL, toggle_unoffensive, 0, "<ToggleItem>" },
                                                                            ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:623:77: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/Options/Promisc mode", NULL, toggle_nopromisc,  0, "<ToggleItem>" },
                                                                            ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:624:70: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
      { "/Options/Set netmask", "n", gtkui_set_netmask,   0, "<Item>"}
                                                                     ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk.c:626:70: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
     ,{"/_?",          NULL,         NULL,             0, "<Branch>" },
                                                                     ^
10 warnings generated.
[ 14%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_conf.c.o
[ 14%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_filters.c.o
[ 15%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_help.c.o
[ 15%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_hosts.c.o
[ 16%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_live.c.o
[ 16%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_logging.c.o
[ 16%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_menus.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:28:82: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Start",                NULL,          NULL,                 0, "<Branch>" },
                                                                                 ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:31:85: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Start/sep1",            NULL,          NULL,                 0, "<Separator>" },
                                                                                    ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:36:86: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Targets",                 NULL,          NULL,                  0, "<Branch>" },
                                                                                     ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:39:89: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Targets/sep1",             NULL,          NULL,                  0, "<Separator>" },
                                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:41:90: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Targets/Reverse matching", NULL,          toggle_reverse,        0, "<ToggleItem>" },
                                                                                         ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:42:89: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Targets/sep2",             NULL,          NULL,                  0, "<Separator>" },
                                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:47:79: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Hosts",                  NULL,         NULL,             0, "<Branch>" },
                                                                              ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:49:82: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Hosts/sep1",              NULL,         NULL,             0, "<Separator>" },
                                                                                 ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:59:82: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_View",                        NULL, NULL,                   0, "<Branch>" },
                                                                                 ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:63:85: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/View/sep1",                    NULL, NULL,                   0, "<Separator>" },
                                                                                    ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:64:86: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/View/Resolve IP addresses",    NULL, toggle_resolve,         0, "<ToggleItem>" },
                                                                                     ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:67:85: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/View/sep1",                    NULL, NULL,                   0, "<Separator>" },
                                                                                    ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:72:75: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Mitm",                    NULL, NULL,                0, "<Branch>" },
                                                                          ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:73:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Mitm/Arp poisoning...",    NULL, gtkui_arp_poisoning, 0, "<Item>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:74:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Mitm/Icmp redirect...",    NULL, gtkui_icmp_redir,    0, "<Item>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:75:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Mitm/Port stealing...",    NULL, gtkui_port_stealing, 0, "<Item>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:76:73: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Mitm/Dhcp spoofing...",    NULL, gtkui_dhcp_spoofing, 0, "<Item>" },
                                                                        ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:80:78: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Mitm/sep1",                NULL, NULL,                0, "<Separator>" },
                                                                             ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:85:81: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Filters",                 NULL,         NULL,              0, "<Branch>" },
                                                                                ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:91:83: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Logging",                             NULL, NULL,            0, "<Branch>" },
                                                                                  ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:95:86: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Logging/sep1",                         NULL, NULL,            0, "<Separator>" },
                                                                                     ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:98:86: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Logging/sep2",                         NULL, NULL,            0, "<Separator>" },
                                                                                     ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:99:87: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/Logging/Compressed file",              NULL, toggle_compress, 0, "<ToggleItem>" }
                                                                                      ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:103:83: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_Plugins",                   NULL,         NULL,              0, "<Branch>" },
                                                                                  ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:110:77: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
   {"/_?",                   NULL,         NULL,              0, "<Branch>" },
                                                                            ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_menus.c:118:83: warning: missing field 'extra_data' initializer [-Wmissing-field-initializers]
  { "/sep1",           NULL,         NULL,                      0, "<Separator>"  },
                                                                                  ^
26 warnings generated.
[ 17%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_mitm.c.o
[ 17%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_offline.c.o
[ 18%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_plugins.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_plugins.c:108:14: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
   SAFE_FREE(path);
             ^~~~
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/include/ec.h:87:39: note: expanded from macro 'SAFE_FREE'
#define SAFE_FREE(x) do{ if(x) { free(x); x = NULL; } }while(0)
                                      ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/stdlib.h:143:18: note: passing argument to parameter here
void     free(void *);
                    ^
1 warning generated.
[ 18%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_start.c.o
[ 18%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_targets.c.o
[ 19%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_view.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_view.c:363:22: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
   if(!g_get_charset(&local_lang)) {
                     ^~~~~~~~~~~
/opt/local/include/glib-2.0/glib/gcharset.h:33:59: note: passing argument to parameter 'charset' here
gboolean              g_get_charset         (const char **charset);
                                                          ^
1 warning generated.
[ 19%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_view_connections.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/interfaces/gtk/ec_gtk_view_connections.c:1317:16: warning: assigning to 'char *' from 'const gchar *' (aka 'const char *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
      filename = gtk_entry_get_text(GTK_ENTRY (entry));
               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 19%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/gtk/ec_gtk_view_profiles.c.o
Linking C static library libec_interfaces.a
[ 19%] Built target ec_interfaces
Scanning dependencies of target libnet
[ 19%] Built target libnet
Scanning dependencies of target lib_ettercap
[ 19%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_mem.c.o
[ 19%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_capture.c.o
[ 20%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_checksum.c.o
[ 20%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_conf.c.o
[ 21%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_connbuf.c.o
[ 21%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_conntrack.c.o
[ 21%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_debug.c.o
[ 22%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_decode.c.o
[ 22%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_dispatcher.c.o
[ 22%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_dissect.c.o
[ 23%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_encryption_ccmp.c.o
[ 23%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_encryption_tkip.c.o
[ 24%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_encryption.c.o
[ 24%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_error.c.o
[ 24%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_exit.c.o
[ 25%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_file.c.o
[ 25%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_filter.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_filter.c:794:84: warning: comparison of integers of different signs: 'long' and 'unsigned long' [-Wsign-compare]
   if(GBL_PCAP->snaplen - (po->L4.header - (po->packet + po->L2.len) + po->L4.len) <= po->DATA.len + size)
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 26%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_fingerprint.c.o
[ 26%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_format.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_format.c:391:14: warning: passing 'const char **' to parameter of type 'char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers]
   iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
             ^~~~~~
/opt/local/include/iconv.h:83:43: note: passing argument to parameter 'inbuf' here
extern size_t iconv (iconv_t cd,  char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft);
                                          ^
1 warning generated.
[ 26%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_globals.c.o
[ 27%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_hash.c.o
[ 27%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_hook.c.o
[ 27%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_inet.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_inet.c:163:38: warning: unused parameter 'sn' [-Wunused-parameter]
int ip_addr_init_sol(struct ip_addr* sn, struct ip_addr* ip)
                                     ^
1 warning generated.
[ 28%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_inject.c.o
[ 28%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_log.c.o
[ 29%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_manuf.c.o
[ 29%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_mitm.c.o
[ 29%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_network.c.o
[ 30%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_packet.c.o
[ 30%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_passive.c.o
[ 31%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_plugins.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_plugins.c:158:34: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types]
   n = scandir(where, &namelist, plugin_filter, alphasort);
                                 ^~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/dirent.h:144:11: note: passing argument to parameter here
    int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)) __DARWIN_INODE64(scandir);
          ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_plugins.c:164:37: warning: incompatible pointer types passing 'int (struct dirent *)' to parameter of type 'int (*)(const struct dirent *)' [-Wincompatible-pointer-types]
      n = scandir(where, &namelist, plugin_filter, alphasort);
                                    ^~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/dirent.h:144:11: note: passing argument to parameter here
    int (*)(const struct dirent *), int (*)(const struct dirent **, const struct dirent **)) __DARWIN_INODE64(scandir);
          ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_plugins.c:386:45: warning: incompatible pointer types passing 'void (*)(struct plugin_ops *)' to parameter of type 'void (*)(char, struct plugin_ops *)' [-Wincompatible-pointer-types]
   ret = plugin_list_walk(PLP_MIN, PLP_MAX, &plugin_print);
                                            ^~~~~~~~~~~~~
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_plugins.c:320:47: note: passing argument to parameter 'func' here
int plugin_list_walk(int min, int max, void (*func)(char, struct plugin_ops *))
                                              ^
3 warnings generated.
[ 31%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_poll.c.o
[ 31%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_profiles.c.o
[ 32%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_resolv.c.o
[ 32%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_scan.c.o
[ 32%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_send.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_send.c:165:49: warning: unused parameter 'l' [-Wunused-parameter]
void capture_only_incoming(pcap_t *p, libnet_t *l)
                                                ^
1 warning generated.
[ 33%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_services.c.o
[ 33%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_session.c.o
[ 34%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_set.c.o
[ 34%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_signals.c.o
[ 34%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_sniff_bridge.c.o
[ 35%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_sniff.c.o
[ 35%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_sniff_unified.c.o
[ 36%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_socket.c.o
[ 36%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_sslwrap.c.o
[ 36%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_stats.c.o
[ 37%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_streambuf.c.o
[ 37%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_strings.c.o
[ 37%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_threads.c.o
[ 38%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_ui.c.o
[ 38%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_utils.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_utils.c:159:15: warning: unused variable 'gid' [-Wunused-variable]
   u_int uid, gid;
              ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_utils.c:160:10: warning: unused variable 'var' [-Wunused-variable]
   char *var;
         ^
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/ec_utils.c:159:10: warning: unused variable 'uid' [-Wunused-variable]
   u_int uid, gid;
         ^
3 warnings generated.
[ 39%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_bgp.c.o
[ 39%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_cvs.c.o
[ 39%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_dhcp.c.o
[ 40%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_ftp.c.o
[ 40%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_gg.c.o
[ 41%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_http.c.o
[ 41%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_icq.c.o
[ 41%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_imap.c.o
[ 42%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_irc.c.o
[ 42%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_iscsi.c.o
[ 42%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_ldap.c.o
[ 43%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_mdns.c.o
[ 43%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_mongodb.c.o
[ 44%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_mountd.c.o
[ 44%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_msn.c.o
[ 44%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_mysql.c.o
[ 45%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_nbns.c.o
[ 45%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_nntp.c.o
[ 46%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_o5logon.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/dissectors/ec_o5logon.c:103:24: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
            if (length < sizeof(conn_status->user))
                ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 46%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_ospf.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/dissectors/ec_ospf.c:154:25: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
        for (i=length; i<length+OSPF_AUTH_MD5_SIZE; i++) {
                       ~^~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 46%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_pop.c.o
[ 47%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_postgresql.c.o
[ 47%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_portmap.c.o
[ 47%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_radius.c.o
[ 48%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_rcon.c.o
[ 48%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_rip.c.o
~/Downloads/ettercap-19ff3bc5cc60488149852df0ba992fabb87e8d77/src/dissectors/ec_rip.c:156:32: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
            if (rip_packet_len > (PACKET->DATA.len - RIP_HEADER_SIZE - \
                ~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 49%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_rlogin.c.o
[ 49%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_smb.c.o
[ 49%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_smtp.c.o
[ 50%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_snmp.c.o
[ 50%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_socks.c.o
[ 51%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_ssh.c.o
[ 51%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_telnet.c.o
[ 51%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_TN3270.c.o
[ 52%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_vnc.c.o
[ 52%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_vrrp.c.o
[ 52%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_x11.c.o
[ 53%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_ymsg.c.o
[ 53%] Building C object src/CMakeFiles/lib_ettercap.dir/mitm/ec_arp_poisoning.c.o
[ 54%] Building C object src/CMakeFiles/lib_ettercap.dir/mitm/ec_dhcp_spoofing.c.o
[ 54%] Building C object src/CMakeFiles/lib_ettercap.dir/mitm/ec_icmp_redirect.c.o
[ 54%] Building C object src/CMakeFiles/lib_ettercap.dir/mitm/ec_port_stealing.c.o
[ 55%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_arp.c.o
[ 55%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_cooked.c.o
[ 56%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_erf.c.o
[ 56%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_eth.c.o
[ 56%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_fddi.c.o
[ 57%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_gre.c.o
[ 57%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_icmp.c.o
[ 57%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_ip.c.o
[ 58%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_mpls.c.o
[ 58%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_null.c.o
[ 59%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_ppi.c.o
[ 59%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_ppp.c.o
[ 59%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_pppoe.c.o
[ 60%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_rawip.c.o
[ 60%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_tcp.c.o
[ 61%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_tr.c.o
[ 61%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_udp.c.o
[ 61%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_vlan.c.o
[ 62%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_wifi.c.o
[ 62%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_wifi_eapol.c.o
[ 62%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_wifi_prism.c.o
[ 63%] Building C object src/CMakeFiles/lib_ettercap.dir/protocols/ec_wifi_radiotap.c.o
[ 63%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_dns.c.o
[ 64%] Building C object src/CMakeFiles/lib_ettercap.dir/os/ec_darwin.c.o
Linking C shared library libettercap.dylib
clang: warning: argument unused during compilation: '-pg'
Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _utf8_format in ec_format.c.o
  "_libiconv_close", referenced from:
      _utf8_format in ec_format.c.o
      _set_utf8_encoding in ec_format.c.o
  "_libiconv_open", referenced from:
      _utf8_format in ec_format.c.o
      _set_utf8_encoding in ec_format.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libettercap.dylib] Error 1
make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
make: *** [all] Error 2
LocutusOfBorg commented 10 years ago

ok please do git pull and try again!

LocutusOfBorg commented 10 years ago

and please install libiconv!

LocutusOfBorg commented 10 years ago

sorry please don't install libiconv, I want to fix this error before the sslstrip issue. Ettercap should build even without libiconv

LocutusOfBorg commented 10 years ago

seems that finding iconv on macos is a really mess from cmake... can you please try this branch? https://github.com/LocutusOfBorg/ettercap/tree/fix-iconv

eaescob commented 10 years ago

The underlying problem still appears to be with the ipfw command, can you try that command manually? What version of OSX are you running?

julian-weinert commented 10 years ago

Yes, I already tried the commend manually and it worked well. I'm using OS X 10.9 (Mavericks).

I will try the fixed branch tomorrow, I'm not in office anymore. Thanks though

julian-weinert commented 10 years ago

This branch doesn't get nearly done as the previous one. Here is the log:

Scanning dependencies of target libnet
[  0%] Built target libnet
Scanning dependencies of target lib_ettercap
[  0%] Building C object src/CMakeFiles/lib_ettercap.dir/ec_mem.c.o
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: expected parameter declarator
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: conflicting types for '__builtin___strlcat_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:18:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: expected parameter declarator
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:18:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:18:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_mem.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:18:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: conflicting types for '__builtin___strlcpy_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
2 warnings and 6 errors generated.
make[2]: *** [src/CMakeFiles/lib_ettercap.dir/ec_mem.c.o] Error 1
make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
make: *** [all] Error 2
LocutusOfBorg commented 10 years ago

can you please try again my branch? I didn't know about the macos string inclusion

julian-weinert commented 10 years ago

I don't know why the mac port build installs without problems... Now ec_interfaces.dir fails:

Scanning dependencies of target ec_interfaces
[  0%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/__/ec_interfaces.c.o
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: expected parameter declarator
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:13:
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: error: conflicting types for '__builtin___strlcat_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcat.h:2:15: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:22:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: expected parameter declarator
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:22:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro
      '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:22:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:31: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                              ^~~~~~~~~~~~~~~~~~~~~
In file included from ~/Downloads/ettercap-fix-iconv/src/ec_interfaces.c:22:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec.h:58:
In file included from ~/Downloads/ettercap-fix-iconv/include/ec_strings.h:22:
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: error: conflicting types for '__builtin___strlcpy_chk'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Downloads/ettercap-fix-iconv/include/missing/strlcpy.h:2:15: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned long
      (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
2 warnings and 6 errors generated.
make[2]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/__/ec_interfaces.c.o] Error 1
make[1]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/all] Error 2
make: *** [all] Error 2
LocutusOfBorg commented 10 years ago

sorry! please try again!

LocutusOfBorg commented 10 years ago

(you might need to clone the repository again or reset the history).

the macports has a stable version, in the development release we fixed many and many bugs, and some build failures are "normal" since we don't have almost any mac developers and testers here.

julian-weinert commented 10 years ago

Still not working, but the Repo says it's last commit is 2h ago... Could you please share the link again?

LocutusOfBorg commented 10 years ago

https://github.com/LocutusOfBorg/ettercap/tree/fix-iconv

don't worry about the last commit, I rebased it, so it is wrong! and please remove the build directory, just to be sure you are not messing up things :)

julian-weinert commented 10 years ago

Still not working. The 2 warnings are fixed, still got the 6 errors:

Scanning dependencies of target ec_interfaces
[  0%] Building C object src/interfaces/CMakeFiles/ec_interfaces.dir/__/ec_interfaces.c.o
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:13:
~/Documents/Code/ettercap/include/missing/strlcat.h:2:15: error: expected parameter declarator
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:13:
~/Documents/Code/ettercap/include/missing/strlcat.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Documents/Code/ettercap/include/missing/strlcat.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:44: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:13:
~/Documents/Code/ettercap/include/missing/strlcat.h:2:15: error: conflicting types for '__builtin___strlcat_chk'
extern size_t strlcat(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Documents/Code/ettercap/include/missing/strlcat.h:2:15: note: '__builtin___strlcat_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:111:3: note: expanded from macro 'strlcat'
  __builtin___strlcat_chk (dest, src, len, __darwin_obsz (dest))
  ^
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:18:
~/Documents/Code/ettercap/include/missing/strlcpy.h:2:15: error: expected parameter declarator
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:18:
~/Documents/Code/ettercap/include/missing/strlcpy.h:2:15: error: expected ')'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:62: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                             ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:30:32: note: expanded from macro '_USE_FORTIFY_LEVEL'
#    define _USE_FORTIFY_LEVEL 2
                               ^
~/Documents/Code/ettercap/include/missing/strlcpy.h:2:15: note: to match this '('
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:44: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_common.h:39:53: note: expanded from macro '__darwin_obsz'
#define __darwin_obsz(object) __builtin_object_size (object, _USE_FORTIFY_LEVEL > 1 ? 1 : 0)
                                                    ^
In file included from ~/Documents/Code/ettercap/src/ec_interfaces.c:22:
In file included from ~/Documents/Code/ettercap/include/ec.h:58:
In file included from ~/Documents/Code/ettercap/include/ec_strings.h:18:
~/Documents/Code/ettercap/include/missing/strlcpy.h:2:15: error: conflicting types for '__builtin___strlcpy_chk'
extern size_t strlcpy(char *dst, const char *src, size_t siz);
              ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
~/Documents/Code/ettercap/include/missing/strlcpy.h:2:15: note: '__builtin___strlcpy_chk' is a builtin with type 'unsigned long (char *, const char *, unsigned long, unsigned long)'
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/secure/_string.h:105:3: note: expanded from macro 'strlcpy'
  __builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
  ^
6 errors generated.
make[2]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/__/ec_interfaces.c.o] Error 1
make[1]: *** [src/interfaces/CMakeFiles/ec_interfaces.dir/all] Error 2
make: *** [all] Error 2
LocutusOfBorg commented 10 years ago

please clone the branch again, it seems to be you are not up to date

julian-weinert commented 10 years ago

Hey! Thanks... I'm still a bit unfamiliar with git and didn't change the branch correctly. And then I forgot to pull... :)

But still no success. I now got stuck on lib_ettercap/ec_format.c.o:

[ 63%] Building C object src/CMakeFiles/lib_ettercap.dir/dissectors/ec_dns.c.o
[ 64%] Building C object src/CMakeFiles/lib_ettercap.dir/os/ec_darwin.c.o
Linking C shared library libettercap.dylib
Undefined symbols for architecture x86_64:
  "_libiconv", referenced from:
      _utf8_format in ec_format.c.o
  "_libiconv_close", referenced from:
      _utf8_format in ec_format.c.o
      _set_utf8_encoding in ec_format.c.o
  "_libiconv_open", referenced from:
      _utf8_format in ec_format.c.o
      _set_utf8_encoding in ec_format.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/libettercap.dylib] Error 1
make[1]: *** [src/CMakeFiles/lib_ettercap.dir/all] Error 2
make: *** [all] Error 2
LocutusOfBorg commented 10 years ago

Ok please try to build this simple program http://pastebin.com/BUuZCfSk

does it build and runs?

julian-weinert commented 10 years ago

No, does not compile. Same linker error

LocutusOfBorg commented 10 years ago

ok can you please try again?

LocutusOfBorg commented 10 years ago

anyway, you need to make the simple test program work, it should be some linker parameter, I don't know how to help you!

LocutusOfBorg commented 10 years ago

https://trac.macports.org/ticket/31988 can you please try that?

LocutusOfBorg commented 10 years ago

oh maybe I found it, cmake .. -DSPECIAL_LIB_DIR=/opt/local can fix the problem do you have libiconv on /opt/local/lib?

(edited, pruned "lib")

eaescob commented 10 years ago

SPECIAL_LIB_DIR is /opt/local for MacPorts. It will automatically use /lib and /include

Emilio Escobar / eescobar@gmail.com

On Thu, Jan 9, 2014 at 9:14 AM, Gianfranco Costamagna < notifications@github.com> wrote:

oh maybe I found it, cmake .. -DSPECIAL_LIB_DIR=/opt/local/lib can fix the problem do you have libiconv on /opt/local/lib?

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-31954655 .

LocutusOfBorg commented 10 years ago

Sorry can you please point me where is set it?

eaescob commented 10 years ago

you can set it in the cmakelists.txt file or using -D like you said :)

Emilio Escobar / eescobar@gmail.com

On Thu, Jan 9, 2014 at 9:46 AM, Gianfranco Costamagna < notifications@github.com> wrote:

Sorry can you please point me where is set it?

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-31957871 .

LocutusOfBorg commented 10 years ago

Would be nice to automatically set in the cmakelists right?

eaescob commented 10 years ago

Not sure if it can be automatic since Brew installs library in a different place. /opt/local is MacPorts specific. Unless we have MACPORTS_DIR and BREW_DIR so that users can just set SPECIAL_LIB_DIR to either one of those but that's limiting to only those two

Emilio Escobar / eescobar@gmail.com

On Thu, Jan 9, 2014 at 9:50 AM, Gianfranco Costamagna < notifications@github.com> wrote:

Would be nice to automatically set in the cmakelists right?

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-31958191 .

julian-weinert commented 10 years ago

Now I could compile with cmake -D SPECIAL_LIB_DIR=/opt/local! Many thanks. First I tried to set the variable in the CMakeLists.txt but I'm not familiar with CMake.

But unfortunately I'm still not able to start SSLStrip. Does the command maybe return an IP address or similar? Status code 127 reminds me of 127.0.0.1...

Edit Now the fwd entry for port 80 is in the table: 01000 0 0 fwd 127.0.0.1,59272 tcp from any to any dst-port 80 in via en1

LocutusOfBorg commented 10 years ago

Wonderful! Just a question, are you able to build the official git or the fix-iconv branch? Now that you are able to build it please build it with debug enabled -DCMAKE_BUILD_TYPE=Debug

and post the debug log! thanks!

LocutusOfBorg commented 10 years ago

After building in debug mode, can you please just run "ipfw add set 21 fwd 127.0.0.1,59272 tcp from any to any 80 in via en1" in you bash with sudo privileges? and report back the echo $? after the command

julian-weinert commented 10 years ago

I was able to build the fix-iconv branch, master did not compile, I just tried it.

ipfw add set 21 fwd 127.0.0.1,59272 tcp from any to any 80 in via en1 results in 00100 fwd 127.0.0.1,59272 ip from any to any proto tcp dst-port 80 in via en1

Here is my build log

/* REMOVED BUILD LOG */
LocutusOfBorg commented 10 years ago

sorry debug log, not build log :) when you run ettercap you should have in the same directory something like "ettercap-version-debug.log"

Anyway the command works on bash, right?

LocutusOfBorg commented 10 years ago

and please try to build and run this code http://pastebin.com/3FdigzEu

julian-weinert commented 10 years ago

Oh sorry, misunderstood ;) Yes, in bash it works. And your debugging code doesn't seem to produce any problems; Here is your debugging report:

waiting...
02100 fwd 127.0.0.1,59272 tcp from any to any dst-port 80 in via en1
exec returned!
the return value has been 0

-> ${prefix}        /usr/local
-> ${exec_prefix}   /usr/local
-> ${bindir}        /usr/local/bin
-> ${libdir}        /usr/local/lib
-> ${sysconfdir}    /etc
-> ${datadir}       /usr/local/share

-> ettercap 0.8.0

-> compiled with gcc 4.2 (/usr/bin/cc)
-> libpcap version 1.5.2
-> libnet version 1.1.6
-> libz version 1.2.8
-> libpcre version 8.33 2013-05-28
-> lib     OpenSSL 1.0.1e 11 Feb 2013
-> headers OpenSSL 1.0.1e 11 Feb 2013

DEVICE OPENED FOR ettercap DEBUGGING

[NR_THREAD] main -- here we go !!
[NR_THREAD] ec_thread_register -- [140735216050960] init
[     init] signal_handler activated
[     init] parse_options -- [0] [ettercap]
[     init] parse_options -- [1] [-G]
[     init] select_gtk_interface
[     init] GTK -> gtk+ 2.24.22

[     init] parse_options: options parsed
[     init] compile_target TARGET: //
[     init] MAC  : []
[     init] IP   : []
[     init] PORT : []
[     init] compile_target TARGET: //
[     init] MAC  : []
[     init] IP   : []
[     init] PORT : []
[     init] parse_options: targets parsed
[     init] set_unified_sniff
[     init] parse_options: options combination looks good
[     init] init_structures
[     init] load_conf
[     init] get_full_path -- [etc] /etc/ettercap/etter.conf
[     init] open_data (/etc/ettercap/etter.conf)
[     init] load_conf: SECTION: privs
[     init] load_conf:  ENTRY: ec_uid  0
[     init] load_conf:  ENTRY: ec_gid  0
[     init] load_conf: SECTION: mitm
[     init] load_conf:  ENTRY: arp_storm_delay  10
[     init] load_conf:  ENTRY: arp_poison_warm_up  1
[     init] load_conf:  ENTRY: arp_poison_delay  10
[     init] load_conf:  ENTRY: arp_poison_icmp  1
[     init] load_conf:  ENTRY: arp_poison_reply  1
[     init] load_conf:  ENTRY: arp_poison_request  0
[     init] load_conf:  ENTRY: arp_poison_equal_mac  1
[     init] load_conf:  ENTRY: dhcp_lease_time  1800
[     init] load_conf:  ENTRY: port_steal_delay  10
[     init] load_conf:  ENTRY: port_steal_send_delay  2000
[     init] load_conf: SECTION: connections
[     init] load_conf:  ENTRY: connection_timeout  300
[     init] load_conf:  ENTRY: connection_idle  5
[     init] load_conf:  ENTRY: connection_buffer  10000
[     init] load_conf:  ENTRY: connect_timeout  5
[     init] load_conf: SECTION: stats
[     init] load_conf:  ENTRY: sampling_rate  50
[     init] load_conf: SECTION: misc
[     init] load_conf:  ENTRY: close_on_eof  1
[     init] load_conf:  ENTRY: store_profiles  1
[     init] load_conf:  ENTRY: aggressive_dissectors  1
[     init] load_conf:  ENTRY: skip_forwarded_pcks  1
[     init] load_conf:  ENTRY: checksum_check  0
[     init] load_conf:  ENTRY: submit_fingerprint  0
[     init] load_conf:  ENTRY: checksum_warning  0
[     init] load_conf: SECTION: dissectors
[     init] dissect_modify: ftp replaced to 21
[     init] dissect_modify: ssh replaced to 22
[     init] dissect_modify: telnet replaced to 23
[     init] dissect_modify: smtp replaced to 25
[     init] dissect_modify: dns replaced to 53
[     init] dissect_modify: dhcp replaced to 67
[     init] dissect_modify: http replaced to 80
[     init] dissect_modify: ospf replaced to 89
[     init] dissect_modify: pop3 replaced to 110
[     init] dissect_modify: vrrp replaced to 112
[     init] dissect_modify: nntp replaced to 119
[     init] dissect_modify: smb replaced to 139
[     init] dissect_modify: smb added on 445
[     init] dissect_modify: imap replaced to 143
[     init] dissect_modify: imap added on 220
[     init] dissect_modify: snmp replaced to 161
[     init] dissect_modify: bgp replaced to 179
[     init] dissect_modify: ldap replaced to 389
[     init] sslw_dissect_move: https [443]
[     init] dissect_modify: https replaced to 443
[     init] sslw_dissect_move: ssmtp [465]
[     init] dissect_modify: ssmtp replaced to 465
[     init] dissect_modify: rlogin replaced to 512
[     init] dissect_modify: rlogin added on 513
[     init] dissect_modify: rip replaced to 520
[     init] sslw_dissect_move: nntps [563]
[     init] dissect_modify: nntps replaced to 563
[     init] sslw_dissect_move: ldaps [636]
[     init] dissect_modify: ldaps replaced to 636
[     init] sslw_dissect_move: telnets [992]
[     init] dissect_modify: telnets replaced to 992
[     init] sslw_dissect_move: imaps [993]
[     init] dissect_modify: imaps replaced to 993
[     init] sslw_dissect_move: ircs [994]
[     init] dissect_modify: ircs replaced to 994
[     init] sslw_dissect_move: pop3s [995]
[     init] dissect_modify: pop3s replaced to 995
[     init] dissect_modify: socks replaced to 1080
[     init] dissect_modify: radius replaced to 1645
[     init] dissect_modify: radius added on 1646
[     init] dissect_modify: msn replaced to 1863
[     init] dissect_modify: cvs replaced to 2401
[     init] dissect_modify: mysql replaced to 3306
[     init] dissect_modify: icq replaced to 5190
[     init] dissect_modify: ymsg replaced to 5050
[     init] dissect_modify: mdns replaced to 5353
[     init] dissect_modify: vnc replaced to 5900
[     init] dissect_modify: vnc added on 5901
[     init] dissect_modify: vnc added on 5902
[     init] dissect_modify: vnc added on 5903
[     init] dissect_modify: x11 replaced to 6000
[     init] dissect_modify: x11 added on 6001
[     init] dissect_modify: x11 added on 6002
[     init] dissect_modify: x11 added on 6003
[     init] dissect_modify: irc replaced to 6666
[     init] dissect_modify: irc added on 6667
[     init] dissect_modify: irc added on 6668
[     init] dissect_modify: irc added on 6669
[     init] dissect_modify: gg replaced to 8074
[     init] sslw_dissect_move: proxy [8080]
[     init] dissect_modify: proxy replaced to 8080
[     init] dissect_modify: rcon replaced to 27015
[     init] dissect_modify: rcon added on 27960
[     init] dissect_modify: ppp replaced to 34827
[     init] dissect_modify: TN3270 replaced to 23
[     init] dissect_modify: TN3270 added on 992
[     init] load_conf: SECTION: curses
[     init] load_conf:  ENTRY: color_bg  0
[     init] load_conf:  ENTRY: color_fg  7
[     init] load_conf:  ENTRY: color_join1  2
[     init] load_conf:  ENTRY: color_join2  4
[     init] load_conf:  ENTRY: color_border  7
[     init] load_conf:  ENTRY: color_title  3
[     init] load_conf:  ENTRY: color_focus  6
[     init] load_conf:  ENTRY: color_menu_bg  4
[     init] load_conf:  ENTRY: color_menu_fg  6
[     init] load_conf:  ENTRY: color_window_bg  4
[     init] load_conf:  ENTRY: color_window_fg  7
[     init] load_conf:  ENTRY: color_selection_bg  6
[     init] load_conf:  ENTRY: color_selection_fg  6
[     init] load_conf:  ENTRY: color_error_bg  1
[     init] load_conf:  ENTRY: color_error_fg  3
[     init] load_conf:  ENTRY: color_error_border  3
[     init] load_conf: SECTION: strings
[     init] load_conf:  ENTRY: utf8_encoding  [ISO-8859-1]
[     init] load_conf:  ENTRY: remote_browser  [xdg-open http://%host%url]
[     init] load_conf:  ENTRY: redir_command_on  [ipfw add set %set fwd 127.0.0.1,%rport tcp from any to any %port in via %iface]
[     init] load_conf:  ENTRY: redir_command_off  [ipfw -q delete set %set]
[     init] capture_getifs
[     init] capture_getifs: [en0] en0
[     init] capture_getifs: [bridge0] bridge0
[     init] capture_getifs: [en1] en1
[     init] capture_getifs: [p2p0] p2p0
[     init] capture_getifs: [en5] en5
[     init] capture_getifs: [en6] en6
[     init] capture_getifs: [lo0] Local Loopback
[     init] ui_init
[     init] gtk_init
[     init] gtkui_conf_read: /Users/admin/.config/ettercap_gtk
[     init] gtkui_setup
[     init] gtkui_conf_get: name=window_width
[     init] gtkui_conf_get: name=window_height
[     init] gtkui_conf_get: name=window_left
[     init] gtkui_conf_get: name=window_top
[     init] gtk_setup: end
[     init] gtk_unified_sniff
[     init] init_network
[     init] source_init en1
[     init] requested snaplen for en1: 65535, assigned snaplen: 65535
[     init] get_iface_mtu: 1500
[     init] l3_init
[     init] disable_ip_forward | net.inet.ip.forwarding = 0  old_value = 0

[     init] ssl_wrap_init
[     init] sslw - bind 992 on 59263
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59263 tcp from any to any 992 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 465 on 59264
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59264 tcp from any to any 465 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 995 on 59265
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59265 tcp from any to any 995 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 563 on 59266
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59266 tcp from any to any 563 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 636 on 59267
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59267 tcp from any to any 636 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 994 on 59268
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59268 tcp from any to any 994 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 993 on 59269
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59269 tcp from any to any 993 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 8080 on 59270
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59270 tcp from any to any 8080 in via en1]
[     init] ATEXIT: regain_privs
[     init] sslw - bind 443 on 59271
[     init] sslw_insert_redirect: [ipfw add set 20 fwd 127.0.0.1,59271 tcp from any to any 443 in via en1]
[     init] ATEXIT: regain_privs
[     init] drop_privs: setuid(0) setgid(0)
[     init] privs: UID: 0 0  GID: 0 0
[     init] plugin_loadall
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_stp_mangler.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_sslstrip.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_smurf_attack.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_smb_down.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_smb_clear.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_search_promisc.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_scan_poisoner.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_repoison_arp.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_reply_arp.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_remote_browser.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_rand_flood.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_pptp_reneg.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_pptp_pap.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_pptp_clear.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_pptp_chapms1.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_nbns_spoof.so
[     init] get_full_path -- [etc] /etc/ettercap/etter.nbns
[     init] open_data (/etc/ettercap/etter.nbns)
[     init] nbns_spoof entries:
[     init]  WORKGROUP -> [127.0.0.1]
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_mdns_spoof.so
[     init] get_full_path -- [etc] /etc/ettercap/etter.mdns
[     init] open_data (/etc/ettercap/etter.mdns)
[     init] mdns_spoof: etter.mdns:43 str 'microsoft.com      A   198.182.196.56
'
[     init] mdns_spoof: etter.mdns:44 str '*.microsoft.com    A   198.182.196.56
'
[     init] mdns_spoof: etter.mdns:45 str 'www.microsoft.com  PTR 198.182.196.56      '
[     init] mdns_spoof: etter.mdns:51 str 'router.local       A    192.168.0.25
'
[     init] mdns_spoof: etter.mdns:52 str 'router.local       AAAA 2001:db8::25       '
[     init] mdns_spoof: etter.mdns:53 str 'router.local       PTR  192.168.0.25
'
[     init] mdns_spoof: etter.mdns:54 str 'router.local       PTR  2001:db8::25
'
[     init] mdns_spoof: etter.mdns:60 str 'xmpp-server._tcp.jabber.org SRV 192.168.1.10:5269     
'
[     init] mdns_spoof: etter.mdns:61 str 'domain._udp.local SRV [2001:db8:c001:beef::1]:53   
'
[     init] mdns_spoof entries:
[     init]   domain._udp.local -> [2001:db8:c001:beef::1:53], type SRV, family IPv6
[     init]   xmpp-server._tcp.jabber.org -> [192.168.1.10:5269], type SRV, family IPv4
[     init]   router.local -> [2001:db8::25], type PTR, family IPv6
[     init]   router.local -> [192.168.0.25], type PTR, family IPv4
[     init]   router.local -> [2001:db8::25], type AAAA, family IPv6
[     init]   router.local -> [192.168.0.25], type A, family IPv4
[     init]   www.microsoft.com -> [198.182.196.56], type PTR, family IPv4
[     init]   *.microsoft.com -> [198.182.196.56], type A, family IPv4
[     init]   microsoft.com -> [198.182.196.56], type A, family IPv4
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_link_type.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_isolate.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_gw_discover.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_gre_relay.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_fraggle_attack.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_finger_submit.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_finger.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_find_ip.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_find_ettercap.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_find_conn.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_dummy.so
[     init] dummy plugin load function
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_dos_attack.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_dns_spoof.so
[     init] get_full_path -- [etc] /etc/ettercap/etter.dns
[     init] open_data (/etc/ettercap/etter.dns)
[     init] etter.dns:56 str 'microsoft.com      A   209.92.24.80
'
[     init] etter.dns:57 str '*.microsoft.com    A   209.92.24.80
'
[     init] etter.dns:58 str 'www.microsoft.com  PTR 209.92.24.80      '
[     init] etter.dns:64 str 'www.alor.org  A 127.0.0.1
'
[     init] etter.dns:65 str 'www.naga.org  A 127.0.0.1
'
[     init] etter.dns:66 str 'www.naga.org  AAAA 2001:db8::2
'
[     init] etter.dns:72 str 'www.ietf.org   A    127.0.0.1
'
[     init] etter.dns:73 str 'www.ietf.org   AAAA ::
'
[     init] etter.dns:75 str 'www.example.org  A    0.0.0.0
'
[     init] etter.dns:76 str 'www.example.org  AAAA ::1
'
[     init] etter.dns:82 str 'www.ettercap.org           A  127.0.0.1
'
[     init] etter.dns:83 str 'www.ettercap-project.org   A  127.0.0.1
'
[     init] etter.dns:84 str 'ettercap.sourceforge.net   A  216.136.171.201
'
[     init] etter.dns:85 str 'www.ettercap.org           PTR ::1
'
[     init] etter.dns:91 str 'alor.org   MX  127.0.0.1
'
[     init] etter.dns:92 str 'naga.org   MX  127.0.0.1
'
[     init] etter.dns:93 str 'example.org MX 127.0.0.2
'
[     init] etter.dns:94 str 'microsoft.com MX 2001:db8::1ce:c01d:bee3
'
[     init] etter.dns:101 str 'LAB-PC*  WINS  127.0.0.1
'
[     init] etter.dns:106 str 'xmpp-server._tcp.jabber.org SRV 192.168.1.10:5269     
'
[     init] etter.dns:107 str 'ldap._udp.mynet.com SRV [2001:db8:c001:beef::1]:389   
'
[     init] dns_spoof entries:
[     init]   ldap._udp.mynet.com -> [2001:db8:c001:beef::1:389], type SRV, family IPv6
[     init]   xmpp-server._tcp.jabber.org -> [192.168.1.10:5269], type SRV, family IPv4
[     init]   LAB-PC* -> [127.0.0.1], type WINS, family IPv4
[     init]   microsoft.com -> [2001:db8::1ce:c01d:bee3], type MX, family IPv6
[     init]   example.org -> [127.0.0.2], type MX, family IPv4
[     init]   naga.org -> [127.0.0.1], type MX, family IPv4
[     init]   alor.org -> [127.0.0.1], type MX, family IPv4
[     init]   www.ettercap.org -> [::1], type PTR, family IPv6
[     init]   ettercap.sourceforge.net -> [216.136.171.201], type A, family IPv4
[     init]   www.ettercap-project.org -> [127.0.0.1], type A, family IPv4
[     init]   www.ettercap.org -> [127.0.0.1], type A, family IPv4
[     init]   www.example.org -> [::1], type AAAA, family IPv6
[     init]   www.example.org -> [0.0.0.0], type A, family IPv4
[     init]   www.ietf.org -> [::], type AAAA, family IPv6
[     init]   www.ietf.org -> [127.0.0.1], type A, family IPv4
[     init]   www.naga.org -> [2001:db8::2], type AAAA, family IPv6
[     init]   www.naga.org -> [127.0.0.1], type A, family IPv4
[     init]   www.alor.org -> [127.0.0.1], type A, family IPv4
[     init]   www.microsoft.com -> [209.92.24.80], type PTR, family IPv4
[     init]   *.microsoft.com -> [209.92.24.80], type A, family IPv4
[     init]   microsoft.com -> [209.92.24.80], type A, family IPv4
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_chk_poison.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_autoadd.so
[     init] plugin_load_single: /usr/local/lib/ettercap/ec_arp_cop.so
[     init] get_full_path -- [share] /usr/local/share/ettercap/etter.finger.mac
[     init] open_data (/usr/local/share/ettercap/etter.finger.mac)
[     init] manuf_init -- 18729 fingers loaded
[     init] get_full_path -- [share] /usr/local/share/ettercap/etter.finger.os
[     init] open_data (/usr/local/share/ettercap/etter.finger.os)
[     init] fingerprint_init -- 1766 fingers loaded
[     init] get_full_path -- [share] /usr/local/share/ettercap/etter.services
[     init] open_data (/usr/local/share/ettercap/etter.services)
[     init] serv_init -- 2182 services loaded
[     init] get_full_path -- [share] /usr/local/share/ettercap/etter.fields
[     init] open_data (/usr/local/share/ettercap/etter.fields)
[     init] set_utf8_encoding: ISO-8859-1
[     init] ec_thread_new -- top_half detached 0
[     init] thread_init_lock
[     init] ec_thread_register -- [4554076160] top_half
[     init] ec_thread_new -- 4554076160 created 
[ top_half] ec_thread_init -- 4554076160
[ top_half] thread_init_lock
[ top_half] thread_init_unlock
[ top_half] ec_thread_init -- (4554076160) ready and syncronized
[ top_half] top_half activated !
[     init] thread_init_unlock
[     init] ec_thread_register -- [140735216050960] ettercap
[ ettercap] ui_start
[ ettercap] gtk_start
[ ettercap] gtk_sniff_live
[ ettercap] gtk_create_menu
[ ettercap] gtkui_msg: Listening on:

[ ettercap] gtkui_msg:    en1 -> 8C:2D:AA:3D:FB:2D

[ ettercap] gtkui_msg:    10.0.10.40/
[ ettercap] gtkui_msg: 255.255.255.0

[ ettercap] gtkui_msg:    fe80::8e2d:aaff:fe3d:fb2d/64

[ ettercap] gtkui_msg: 

[ ettercap] gtkui_msg: Privileges dropped to UID 0 GID 0...

[ ettercap] gtkui_msg:   33 plugins

[ ettercap] gtkui_msg:   42 protocol dissectors

[ ettercap] gtkui_msg:   57 ports monitored

[ ettercap] gtkui_msg: 18729 mac vendor fingerprint

[ ettercap] gtkui_msg: 1766 tcp OS fingerprint

[ ettercap] gtkui_msg: 2182 known services

[ ettercap] gtk_plugin_mgmt
[ ettercap] gtk_create_plug_array
[ ettercap] ec_thread_init -- 140735216050960
[ ettercap] thread_init_lock
[ ettercap] thread_init_unlock
[ ettercap] ec_thread_init -- (140735216050960) ready and syncronized
[ ettercap] http_listen_thread: initialized and ready
[ ettercap] http_insert_redirect: [ipfw add set 21 fwd 127.0.0.1,59272 tcp from any to any 80 in via en1]
[ ettercap] ATEXIT: regain_privs
[ ettercap] gtk_create_plug_array
[ ettercap] gtkui_msg: Activating sslstrip plugin...

[ ettercap] gtkui_msg: SSLStrip plugin: bind 80 on 59272

[ ettercap] gtkui_msg: SSLStrip: redir_command_on had non-zero exit status (127): [ipfw add set 21 fwd 127.0.0.1,59272 tcp from any to any 80 in via en1]

[ ettercap] gtkui_msg: SSLStrip: plugin load failed: Could not set up HTTP redirect

[ ettercap] gtkui_exit
[ ettercap] gtkui_conf_set: name=window_left value=2517
[ ettercap] gtkui_conf_set: name=window_top value=148
[ ettercap] gtkui_conf_set: name=window_width value=819
[ ettercap] gtkui_conf_set: name=window_height value=501
[ ettercap] gtkui_conf_save
[ ettercap] clean_exit: 0
[ ettercap] mitm_stop
[ ettercap] stop_unified_sniff
[ ettercap] ec_thread_kill_all -- caller 140735216050960 [ettercap]
[ ettercap] ec_thread_kill_all -- terminating 4554076160 [top_half]
[ ettercap] ec_thread_kill_all -- [top_half] terminated
[ ettercap] ui_cleanup
[ ettercap] ATEXIT: discard_servdb
[ ettercap] ATEXIT: fingerprint_discard
[ ettercap] ATEXIT: discard_macdb
[ ettercap] ATEXIT: plugin_unload_all
[ ettercap] ATEXIT: ssl_wrap_fini
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] sslw_remove_redirect: [ipfw -q delete set 20]
[ ettercap] ATEXIT: regain_privs
[ ettercap] ATEXIT: regain_privs
[ ettercap] ATEXIT: close_network
[ ettercap] ATEXIT: send_closed

DEVICE CLOSED FOR DEBUGGING
LocutusOfBorg commented 10 years ago

can you please git pull and try again? I added some shitty log and maybe fixed the problem

eaescob commented 10 years ago

So I was testing on Mac OS X and I noticed that I get the same non-zero response when adding the redirect rules. Will verify.

Emilio Escobar / eescobar@gmail.com

On Fri, Jan 10, 2014 at 6:16 AM, Gianfranco Costamagna < notifications@github.com> wrote:

can you please git pull and try again? I added some shitty log and maybe fixed the problem

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-32030223 .

LocutusOfBorg commented 10 years ago

can you please start from here? https://github.com/Ettercap/ettercap/pull/456

I noticed the signal handler for the child process, maybe has something to do with this issue? Also, before WEXITSTATUS you need to test WIFEXITED (just two possible issues)

eaescob commented 10 years ago

It works, now we have to implement the same for the SSLwrap?

The redirect works, it's failing to compile the find_cookie regex for me now.

LocutusOfBorg commented 10 years ago

so what was the problem? The wexitstatus or the sigchild?

eaescob commented 10 years ago

the WEXITstatus I believe

Emilio Escobar / eescobar@gmail.com

On Fri, Jan 10, 2014 at 8:09 AM, Gianfranco Costamagna < notifications@github.com> wrote:

so what was the problem? The wexitstatus or the sigchild?

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-32040130 .

LocutusOfBorg commented 10 years ago

ok so now the pull request #456 fixes part of this issue, right? we can merge it and wait for the find_cookie fix, I don't know how to deal with it :) or you can continue from my branch if you want

eaescob commented 10 years ago

i think i got it but can't test right now, at work

Emilio Escobar / eescobar@gmail.com

On Fri, Jan 10, 2014 at 8:28 AM, Gianfranco Costamagna < notifications@github.com> wrote:

ok so now the pull request #456https://github.com/Ettercap/ettercap/pull/456fixes part of this issue, right? we can merge it and wait for the find_cookie fix, I don't know how to deal with it :) or you can continue from my branch if you want

— Reply to this email directly or view it on GitHubhttps://github.com/Ettercap/ettercap/issues/447#issuecomment-32041935 .

eaescob commented 10 years ago

That's strange, it compiles for me. You sure you didn't touch that file?

Also, I am tackling the regex here https://github.com/eaescob/ettercap/tree/fix-iconv

I can't test since I"m at work.

julian-weinert commented 10 years ago

Easy syntax error in line 409, missing colon.