From ac1e13a0d00f10b7653c2bc07ad07d2b10b8bc64 Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 5 Sep 2024 18:11:49 +0200 Subject: [PATCH] set MP bit 7 on option nonce-error-correctins --- hcxpcapngtool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hcxpcapngtool.c b/hcxpcapngtool.c index 84d94ad19..a54fb4693 100644 --- a/hcxpcapngtool.c +++ b/hcxpcapngtool.c @@ -2165,6 +2165,9 @@ for(zeigerhs = zeigerhsakt; zeigerhs < handshakelistptr; zeigerhs++) zeigerhs->status |= 0x80; // zeigerhs->status &= ~(1 << 7); } + if((ncvalue > 0) && ((zeigerhs->status & 0x10) == 0)) zeigerhs->status |= 0x80; + + wpak = (wpakey_t*)(zeigerhs->eapol +EAPAUTH_SIZE); keyvertemp = ntohs(wpak->keyinfo) & WPA_KEY_INFO_TYPE_MASK; memcpy(&eapoltemp, zeigerhs->eapol, zeigerhs->eapauthlen);