do not test zeroed PSKs on option --all
@@ -1760,13 +1760,16 @@ for(zeigerhs = zeigerhsakt; zeigerhs < handshakelistptr; zeigerhs++)
memcpy(&eapoltemp, zeigerhs->eapol, zeigerhs->eapauthlen);
wpaktemp = (wpakey_t*)(eapoltemp +EAPAUTH_SIZE);
memset(wpaktemp->keymic, 0, 16);
+ if(donotcleanflag == false)
+ {
if(testzeroedpsk(zeigermac->essidlen, zeigermac->essid) == true)
{
if(testeapolpmk(calculatedpmk, keyvertemp, zeigerhs->client, zeigerhs->ap, zeigerhs->anonce, zeigerhs->eapauthlen, zeigerhs->eapol) == true)
{
zeroedeapolpskcount++;
eapolmpbestcount--;
- if(donotcleanflag == false) continue;
+ continue;
+ }
}
}
if(fh_pmkideapol != 0)
@@ -1889,13 +1892,16 @@ for(zeigerpmkid = zeigerpmkidakt; zeigerpmkid < pmkidlistptr; zeigerpmkid++)
}
}
if(memcmp(zeigermac->addr, zeigerpmkid->ap, 6) == 0)
+ {
+ if(donotcleanflag == false)
{
if(testzeroedpsk(zeigermac->essidlen, zeigermac->essid) == true)
{
if(testpmkid(calculatedpmk, zeigerpmkid->client, zeigerpmkid->ap, zeigerpmkid->pmkid) == true)
{
zeroedpmkidpskcount++;
- if(donotcleanflag == false) continue;
+ continue;
+ }
}
}
if(memcmp(&myaktclient, zeigerpmkid->client, 6) == 0) pmkidroguecount++;
