allow nc only < 128 as nonce errorcorrections for hccap and john
@@ -1702,6 +1702,14 @@ if((apstaessidlistecleaned != NULL) && (hccapbestoutname != NULL))
memcpy(zeiger->essid, zeigeressid->essid, zeigeressid->essidlen);
if(essidchangecount < maxessidchanges)
{
+ if(maxrcdiff > 128)
+ {
+ writehccaprecord(128, zeiger, fhoutlist);
+ }
+ else
+ {
+ writehccaprecord(maxrcdiff, zeiger, fhoutlist);
+ }
writehccaprecord(maxrcdiff, zeiger, fhoutlist);
writtencount++;
if((mp & 0x07) == 0)
@@ -1827,8 +1835,15 @@ if((apstaessidlistecleaned != NULL) && (johnbestoutname != NULL))
memset(zeiger->essid, 0, 32);
memcpy(zeiger->essid, zeigeressid->essid, zeigeressid->essidlen);
if(essidchangecount < maxessidchanges)
+ {
+ if(maxrcdiff > 128)
+ {
+ writejohnrecord(128, zeiger, fhoutlist, pcapinname);
+ }
+ else
{
writejohnrecord(maxrcdiff, zeiger, fhoutlist, pcapinname);
+ }
writtencount++;
if((mp & 0x07) == 0)
{
