diff --git a/hcxpcapngtool.c b/hcxpcapngtool.c index c7da8c72..5da9eb69 100644 --- a/hcxpcapngtool.c +++ b/hcxpcapngtool.c @@ -2323,21 +2323,7 @@ for(zeigerpmkid = zeigerpmkidakt; zeigerpmkid < pmkidlistptr; zeigerpmkid++) if(memcmp(&myaktclient, zeigerpmkid->client, 6) == 0) pmkidroguecount++; pmkidbestcount++; - if((fh_pmkideapol != 0) && ((zeigerpmkid->status & PMKID_AP) == PMKID_AP)) - { - //WPA*TYPE*PMKID-ODER-MIC*MACAP*MACSTA*ESSID_HEX*ANONCE*EAPOL*MP - fprintf(fh_pmkideapol, "WPA*%02d*%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x*%02x%02x%02x%02x%02x%02x*%02x%02x%02x%02x%02x%02x*", - HCX_TYPE_PMKID, - zeigerpmkid->pmkid[0], zeigerpmkid->pmkid[1], zeigerpmkid->pmkid[2], zeigerpmkid->pmkid[3], zeigerpmkid->pmkid[4], zeigerpmkid->pmkid[5], zeigerpmkid->pmkid[6], zeigerpmkid->pmkid[7], - zeigerpmkid->pmkid[8], zeigerpmkid->pmkid[9], zeigerpmkid->pmkid[10], zeigerpmkid->pmkid[11], zeigerpmkid->pmkid[12], zeigerpmkid->pmkid[13], zeigerpmkid->pmkid[14], zeigerpmkid->pmkid[15], - zeigerpmkid->ap[0], zeigerpmkid->ap[1], zeigerpmkid->ap[2], zeigerpmkid->ap[3], zeigerpmkid->ap[4], zeigerpmkid->ap[5], - zeigerpmkid->client[0], zeigerpmkid->client[1], zeigerpmkid->client[2], zeigerpmkid->client[3], zeigerpmkid->client[4], zeigerpmkid->client[5]); - for(p = 0; p < zeigermac->essidlen; p++) fprintf(fh_pmkideapol, "%02x", zeigermac->essid[p]); - if(addtimestampflag == false) fprintf(fh_pmkideapol, "***%02x\n", zeigerpmkid->status & PMKID_AP); - else fprintf(fh_pmkideapol, "***%02x\t%s\n", zeigerpmkid->status, timestringhs); - pmkidwrittenhcount++; - } - if((fh_pmkideapol != 0) && (donotcleanflag == true) && ((zeigerpmkid->status & PMKID_CLIENT) == PMKID_CLIENT)) + if(fh_pmkideapol != 0) { //WPA*TYPE*PMKID-ODER-MIC*MACAP*MACSTA*ESSID_HEX*ANONCE*EAPOL*MP fprintf(fh_pmkideapol, "WPA*%02d*%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x*%02x%02x%02x%02x%02x%02x*%02x%02x%02x%02x%02x%02x*", @@ -2347,7 +2333,7 @@ for(zeigerpmkid = zeigerpmkidakt; zeigerpmkid < pmkidlistptr; zeigerpmkid++) zeigerpmkid->ap[0], zeigerpmkid->ap[1], zeigerpmkid->ap[2], zeigerpmkid->ap[3], zeigerpmkid->ap[4], zeigerpmkid->ap[5], zeigerpmkid->client[0], zeigerpmkid->client[1], zeigerpmkid->client[2], zeigerpmkid->client[3], zeigerpmkid->client[4], zeigerpmkid->client[5]); for(p = 0; p < zeigermac->essidlen; p++) fprintf(fh_pmkideapol, "%02x", zeigermac->essid[p]); - if(addtimestampflag == false) fprintf(fh_pmkideapol, "***%02x\n", zeigerpmkid->status & PMKID_CLIENT); + if(addtimestampflag == false) fprintf(fh_pmkideapol, "***%02x\n", zeigerpmkid->status); else fprintf(fh_pmkideapol, "***%02x\t%s\n", zeigerpmkid->status, timestringhs); pmkidwrittenhcount++; } @@ -5657,21 +5643,13 @@ outputtacacsplist(); printcontentinfo(); return; } - /*===========================================================================*/ static bool processgpxfile(char *gpxinname) { static FILE *fh_gpxin; -static int gpxlen; -static char gpxline[GPX_MAX]; if((fh_gpxin = fopen(gpxinname, "r")) == NULL) return false; -while(1) - { - if((gpxlen = fgetline(fh_gpxin, GPX_MAX, gpxline)) == -1) break; -// printf("%s\n", gpxline); - } fclose(fh_gpxin); return true; } @@ -5766,7 +5744,7 @@ uint8_t idx1; static char *csptr; static char *stopptr = NULL; -uint8_t hashmap[] = +static uint8_t hashmap[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, // 01234567 0x08, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // 89:;<=>?