From: hackbard Date: Fri, 10 Jun 2005 16:20:21 +0000 (+0000) Subject: changed flite calls X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=48833c4a97516456062f2ee1d9839aa15e74f929;p=my-code%2Fhdw-sniff.git changed flite calls --- diff --git a/main.h b/main.h index 6d655fc..9f4a350 100644 --- a/main.h +++ b/main.h @@ -37,7 +37,7 @@ #define MESSAGE_MAX 64 #define CHANNEL_MAX 13 #define MAX_DEV_CHARS 6 -#define MAX_SYSCALL_CHARS 64 +#define MAX_SYSCALL_CHARS 128 #define HDW_SNIFF_MAX_WIDTH 80 #define HDW_SNIFF_MAX_HEIGHT 8 diff --git a/parse.c b/parse.c index 7eac803..151c9f5 100644 --- a/parse.c +++ b/parse.c @@ -100,7 +100,12 @@ void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,cons string[22+3*ADDR_LEN+1]=0; display_console(info,string); if(new) { - snprintf(sc,MAX_SYSCALL_CHARS,"flite 'new ssid: %s'",sta->ssid); + snprintf(sc,MAX_SYSCALL_CHARS, + "flite 'access point found: %s'", + sta->ssid); + system(sc); + if(sta->wep&WEP) strncpy(sc,"flite ' crypted'",MAX_SYSCALL_CHARS); + else strncpy(sc,"flite 'not crypted'",MAX_SYSCALL_CHARS); system(sc); } }