int x,y,size,count,cnt,i,s;
t_display *display;
t_sta *sta;
- char help[32];
+ char help[128];
display=(t_display *)&(info->display);
snprintf(help,13,"data: %06d",sta->count_data);
display_string(display,1,7,help,12);
- snprintf(help,33,"ethernet snap: %02x %02x %02x %02x %02x %02x",
- sta->snap[0],sta->snap[1],sta->snap[2],
- sta->snap[3],sta->snap[4],sta->snap[5]);
- display_string(display,1,9,help,32);
snprintf(help,25,"bssid: %02x:%02x:%02x:%02x:%02x:%02x",
sta->bssid[0],sta->bssid[1],sta->bssid[2],
sta->bssid[3],sta->bssid[4],sta->bssid[5]);
- display_string(display,1,10,help,24);
+ display_string(display,1,9,help,24);
+ if(sta->wep==WEP) {
+ snprintf(help,67,"iv + keynr | crypted snap: %02x %02x %02x %02x | %02x %02x %02x %02x %02x %02x",
+ sta->snap[0],sta->snap[1],sta->snap[2],sta->snap[3],
+ sta->snap[4],sta->snap[5],sta->snap[6],sta->snap[7],
+ sta->snap[8],sta->snap[9]);
+ display_string(display,1,10,help,66);
+ }
}
/* footer */
beacon_fb=(t_beacon_fb *)(package+sizeof(t_frame3_hdr));
// check sta
memcpy(new_sta.addr,f3hdr->addr2,ADDR_LEN);
+ memcpy(new_sta.bssid,f3hdr->addr3,ADDR_LEN);
ret=list_search_data(&(info->sniffed_sta),&new_sta,ADDR_LEN);
if((ret==L_EMPTY_LIST)|(ret==L_NO_SUCH_ELEMENT)) {
list_add_element(&(info->sniffed_sta),&new_sta,sizeof(t_sta));
else if(info->mode&MODE_PRISM)
sta->sq=(prismhdr->signal.data)-(prismhdr->noise.data);
if(new) {
- strcpy(sc,"flite 'new station. data package'");
+ strcpy(sc,"flite 'station found by data package'");
system(sc);
}
if(foo) {
strcpy(sc,"flite 'wds package'");
system(sc);
}
- memcpy(sta->snap,data,6);
+ memcpy(sta->snap,data,10);
+ if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)&
+ (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) {
+ sta->wep=0;
+ strcpy(sc,"flite 'not crypted'");
+ system(sc);
+ }
+ else {
+ sta->wep=WEP;
+ strcpy(sc,"flite ' crypted'");
+ system(sc);
+ }
+
//}
display_console(info,"last: got data frame");