/* * start the mitm attack by passing the name and parameters */ static void curses_start_mitm(void) { DEBUG_MSG("curses_start_mitm"); mitm_set(params); mitm_start(); }
/* * start the mitm attack by passing the name and parameters */ static void gtkui_start_mitm(void) { DEBUG_MSG("gtk_start_mitm"); mitm_set(params); mitm_start(); }
void daemon_interface(void) { DEBUG_MSG("daemon_interface"); /* check if the plugin exists */ if (GBL_OPTIONS->plugin && search_plugin(GBL_OPTIONS->plugin) != ESUCCESS) FATAL_ERROR("%s plugin can not be found !", GBL_OPTIONS->plugin); /* build the list of active hosts */ build_hosts_list(); /* start the mitm attack */ mitm_start(); /* initialize the sniffing method */ EXECUTE(GBL_SNIFF->start); /* if we have to activate a plugin */ if (GBL_OPTIONS->plugin && plugin_init(GBL_OPTIONS->plugin) != PLUGIN_RUNNING) /* end the interface */ return; /* discard the messages */ LOOP { CANCELLATION_POINT(); sleep(1); ui_msg_flush(MSG_ALL); } /* NOT REACHED */ }