Skip to content

Commit

Permalink
removed some debug code - improved detection of damaged ESSIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZerBea committed Sep 13, 2018
1 parent 647139b commit 584d92d
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions hcxpcaptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2575,21 +2575,27 @@ for(c = 0; c < apstaessidcount; c++)
memcpy(zeiger2->essid, zeiger1->essid, zeiger1->essidlen);
apstaessidcountcleaned++;
}
else
{
if(memcmp(zeiger1->mac_sta, zeiger2->mac_sta, 6) != 0)
{
zeiger2++;
zeiger2->status |= zeiger1->status;
memcpy(zeiger2->mac_ap, zeiger1->mac_ap, 6);
memcpy(zeiger2->mac_sta, zeiger1->mac_sta, 6);
zeiger2->essidlen = zeiger1->essidlen;
memset(zeiger2->essid, 0, 32);
memcpy(zeiger2->essid, zeiger1->essid, zeiger1->essidlen);
apstaessidcountcleaned++;
}
}
}
zeiger1++;
}

free(apstaessidliste);
apstaessidliste = apstaessidlistecleaned;
apstaessidcount = apstaessidcountcleaned;

/*
zeiger2 = apstaessidlistecleaned;
for(c = 0; c < apstaessidcountcleaned; c++)
{
zeiger2++;
}
*/
return;
}
/*===========================================================================*/
Expand Down

0 comments on commit 584d92d

Please sign in to comment.