X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fhdw-sniff.git;a=blobdiff_plain;f=parse.c;fp=parse.c;h=151c9f52038955d066f4d57d14d9527d9cffef9c;hp=7eac80362f91202bed52bbfe8b995ede8e553850;hb=48833c4a97516456062f2ee1d9839aa15e74f929;hpb=2ede1086cab0258aad9ac4706350d3b461adb44f 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); } }