Skip to content
Permalink
Browse files Browse the repository at this point in the history
More changes to mitigate:
  • Loading branch information
eaescob committed Aug 23, 2012
1 parent d6b2cb4 commit 4ef3ede
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/interfaces/gtk/ec_gtk_conf.c
Expand Up @@ -72,9 +72,7 @@ void gtkui_conf_read(void) {
#ifdef OS_WINDOWS
path = ec_win_get_user_dir();
#else
/* TODO: get the dopped privs home dir instead of "/root" */
/* path = g_get_home_dir(); */
path = g_get_tmp_dir();
path = g_get_home_dir();
#endif

filename = g_build_filename(path, ".ettercap_gtk", NULL);
Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/gtk/ec_gtk_mitm.c
Expand Up @@ -180,9 +180,9 @@ void gtkui_icmp_redir(void)

snprintf(params, 6, "icmp:");

strncat(params, gtk_entry_get_text(GTK_ENTRY(entry1)), PARAMS_LEN);
strncat(params, "/", PARAMS_LEN);
strncat(params, gtk_entry_get_text(GTK_ENTRY(entry2)), PARAMS_LEN);
strncat(params, gtk_entry_get_text(GTK_ENTRY(entry1)), ETH_ASCII_ADDR_LEN);
strncat(params, "/", 1);
strncat(params, gtk_entry_get_text(GTK_ENTRY(entry2)), IP6_ASCII_ADDR_LEN);

gtkui_start_mitm();
}
Expand Down

0 comments on commit 4ef3ede

Please sign in to comment.