]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
changed flite calls
authorhackbard <hackbard>
Fri, 10 Jun 2005 16:20:21 +0000 (16:20 +0000)
committerhackbard <hackbard>
Fri, 10 Jun 2005 16:20:21 +0000 (16:20 +0000)
main.h
parse.c

diff --git a/main.h b/main.h
index 6d655fc82245a5ee2f8233c922b23e5e34768fc2..9f4a35055bf02a7a9a83e4d82ec4bd8b7e156989 100644 (file)
--- a/main.h
+++ b/main.h
@@ -37,7 +37,7 @@
 #define MESSAGE_MAX 64
 #define CHANNEL_MAX 13
 #define MAX_DEV_CHARS 6
 #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
 
 #define HDW_SNIFF_MAX_WIDTH 80
 #define HDW_SNIFF_MAX_HEIGHT 8
diff --git a/parse.c b/parse.c
index 7eac80362f91202bed52bbfe8b995ede8e553850..151c9f52038955d066f4d57d14d9527d9cffef9c 100644 (file)
--- 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) {
       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);
       } 
     }
         system(sc);
       } 
     }