Ticket #645: airodump-ng.c-encPatch

File airodump-ng.c-encPatch, 1.8 KB (added by matrix.use.linux@…, 5 months ago)

patch for airodump-ng.c fix netxml encryption

Line 
1diff -Naur aircrack-ng/src/airodump-ng.c aircrack-ng-fixed/src/airodump-ng.c
2--- aircrack-ng/src/airodump-ng.c       2009-06-27 03:38:12.000000000 +0200
3+++ aircrack-ng-fixed/src/airodump-ng.c 2009-06-27 03:49:11.000000000 +0200
4@@ -2994,19 +2994,19 @@
5                //Encryption
6                if( (ap_cur->security & (STD_OPN|STD_WEP|STD_WPA|STD_WPA2)) != 0)
7                {
8-                       if( ap_cur->security & STD_WPA2 ) fprintf( G.f_kis_xml, "WPA2" );
9-                       if( ap_cur->security & STD_WPA  ) fprintf( G.f_kis_xml, "WPA" );
10-                       if( ap_cur->security & STD_WEP  ) fprintf( G.f_kis_xml, "WEP" );
11-                       if( ap_cur->security & STD_OPN  ) fprintf( G.f_kis_xml, "OPN" );
12+                       if( ap_cur->security & STD_WPA2 ) fprintf( G.f_kis_xml, "WPA2 " );
13+                       if( ap_cur->security & STD_WPA  ) fprintf( G.f_kis_xml, "WPA " );
14+                       if( ap_cur->security & STD_WEP  ) fprintf( G.f_kis_xml, "WEP " );
15+                       if( ap_cur->security & STD_OPN  ) fprintf( G.f_kis_xml, "OPN " );
16                }
17 
18                if( (ap_cur->security & (ENC_WEP|ENC_TKIP|ENC_WRAP|ENC_CCMP|ENC_WEP104|ENC_WEP40)) != 0 )
19                {
20-                       if( ap_cur->security & ENC_CCMP   ) fprintf( G.f_kis_xml, " AES-CCM");
21-                       if( ap_cur->security & ENC_WRAP   ) fprintf( G.f_kis_xml, " WRAP");
22-                       if( ap_cur->security & ENC_TKIP   ) fprintf( G.f_kis_xml, " TKIP");
23-                       if( ap_cur->security & ENC_WEP104 ) fprintf( G.f_kis_xml, " WEP104");
24-                       if( ap_cur->security & ENC_WEP40  ) fprintf( G.f_kis_xml, " WEP40");
25+                       if( ap_cur->security & ENC_CCMP   ) fprintf( G.f_kis_xml, "AES-CCM");
26+                       if( ap_cur->security & ENC_WRAP   ) fprintf( G.f_kis_xml, "WRAP");
27+                       if( ap_cur->security & ENC_TKIP   ) fprintf( G.f_kis_xml, "TKIP");
28+                       if( ap_cur->security & ENC_WEP104 ) fprintf( G.f_kis_xml, "WEP104");
29+                       if( ap_cur->security & ENC_WEP40  ) fprintf( G.f_kis_xml, "WEP40");
30 /*             if( ap_cur->security & ENC_WEP    ) fprintf( G.f_kis, " WEP");*/
31                }
32                fprintf(G.f_kis_xml, "</encryption>\n");