detect old ap-less attacks on cap files
@@ -3923,8 +3923,6 @@ memcpy(&myaktnonce, &mynonce, 32);
uint8_t packet[MAXPACPSNAPLEN];
-
-
printf("start reading from %s\n", pcapinname);
memset(&packet, 0, MAXPACPSNAPLEN);
while(1)
@@ -4167,6 +4165,9 @@ pcap_hdr_t pcapfhdr;
pcaprec_hdr_t pcaprhdr;
uint8_t packet[MAXPACPSNAPLEN];
+myaktreplaycount = MYREPLAYCOUNT;
+memcpy(&myaktnonce, &mynonce, 32);
+
printf("start reading from %s\n", pcapinname);
memset(&packet, 0, MAXPACPSNAPLEN);
res = read(fd, &pcapfhdr, PCAPHDR_SIZE);
