"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plug-ins/finger_submit/finger_submit.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

finger_submit.c  (ettercap-0.8.3):finger_submit.c  (ettercap-0.8.3.1)
skipping to change at line 65 skipping to change at line 65
/* this function is called on plugin load */ /* this function is called on plugin load */
int plugin_load(void *handle) int plugin_load(void *handle)
{ {
return plugin_register(handle, &finger_submit_ops); return plugin_register(handle, &finger_submit_ops);
} }
/******************* STANDARD FUNCTIONS *******************/ /******************* STANDARD FUNCTIONS *******************/
static int finger_submit_init(void *dummy) static int finger_submit_init(void *dummy)
{ {
char host[HOST_LEN + 1];
char page[PAGE_LEN + 1];
char finger[FINGER_LEN + 1]; char finger[FINGER_LEN + 1];
char os[OS_LEN + 1]; char os[OS_LEN + 1];
/* variable not used */ /* variable not used */
(void) dummy; (void) dummy;
/* don't display messages while operating */ /* don't display messages while operating */
EC_GBL_OPTIONS->quiet = 1; EC_GBL_OPTIONS->quiet = 1;
memset(host, 0, sizeof(host));
memset(page, 0, sizeof(page));
memset(finger, 0, sizeof(finger)); memset(finger, 0, sizeof(finger));
memset(os, 0, sizeof(finger)); memset(os, 0, sizeof(os));
/* get the user input */
ui_input("Remote website (enter for default " DEFAULT_HOST " website) ('quit'
to exit) : ", host, sizeof(host), NULL);
/* exit on user request */
if (!strcasecmp(host, "quit"))
return PLUGIN_FINISHED;
if(!strcmp(host, ""))
strcpy(host, DEFAULT_HOST);
ui_input("Remote webpage (enter for default " DEFAULT_PAGE " page) ('quit' to
exit) : ", page, sizeof(page), NULL);
/* exit on user request */
if (!strcasecmp(page, "quit"))
return PLUGIN_FINISHED;
if(!strcmp(page, ""))
strcpy(page, DEFAULT_PAGE);
/* get the user input */ /* get the user input */
ui_input("Fingerprint ('quit' to exit) : ", finger, sizeof(finger), NULL ); ui_input("Fingerprint ('quit' to exit) : ", finger, sizeof(finger), NULL );
/* exit on user request */ /* exit on user request */
if (!strcasecmp(finger, "quit") || !strcmp(finger, "")) if (!strcasecmp(finger, "quit") || !strcmp(finger, ""))
return PLUGIN_FINISHED; return PLUGIN_FINISHED;
ui_input("Operating System ('quit' to exit) : ", os, sizeof(os), NULL); ui_input("Operating System ('quit' to exit) : ", os, sizeof(os), NULL);
/* exit on user request */ /* exit on user request */
if (!strcasecmp(os, "quit") || !strcmp(os, "")) if (!strcasecmp(os, "quit") || !strcmp(os, ""))
return PLUGIN_FINISHED; return PLUGIN_FINISHED;
USER_MSG("\n"); USER_MSG("\n");
/* send the fingerprint */ /* send the fingerprint */
fingerprint_submit(finger, os); fingerprint_submit(host, page, finger, os);
/* flush all the messages */ /* flush all the messages */
ui_msg_flush(MSG_ALL); ui_msg_flush(MSG_ALL);
return PLUGIN_FINISHED; return PLUGIN_FINISHED;
} }
static int finger_submit_fini(void *dummy) static int finger_submit_fini(void *dummy)
{ {
/* variable not used */ /* variable not used */
 End of changes. 4 change blocks. 
2 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)