Skip to content

Commit 25e9390

Browse files
author
=
committed
added weak candidate based on wpa-sec analysis
1 parent 215d86c commit 25e9390

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

hcxpsktool.c

+19
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,24 @@ for(k1 = 0; k1 < 10; k1++)
16431643
return;
16441644
}
16451645
/*===========================================================================*/
1646+
static void testbroadband(FILE *fhout, uint8_t essidlen, uint8_t *essid)
1647+
{
1648+
static int k1;
1649+
static const char *broadband = "Broadband";
1650+
1651+
static char essidtmp[PSKSTRING_LEN_MAX] = { 0 };
1652+
1653+
if(essidlen < 20) return;
1654+
if(memcmp(&essid[9], broadband, 9) != 0) return;
1655+
if((!isdigit((unsigned char)essid[18])) || (!isdigit((unsigned char)essid[19]))) return;
1656+
for(k1 = 0; k1 < 1000000; k1++)
1657+
{
1658+
snprintf(essidtmp, PSKSTRING_LEN_MAX, "%06d%c%c", k1, essid[18], essid[19]);
1659+
writepsk(fhout, essidtmp);
1660+
}
1661+
return;
1662+
}
1663+
/*===========================================================================*/
16461664
static void testcabovisao(FILE *fhout, uint8_t essidlen, uint8_t *essid)
16471665
{
16481666
static int k1;
@@ -2181,6 +2199,7 @@ testarrisizzi(fhout, essidlen, essid);
21812199
testarristg(fhout, essidlen, essid);
21822200
testattwifi(fhout, essidlen, essid);
21832201
testaxtelxtremo(fhout, essidlen, essid);
2202+
testbroadband(fhout, essidlen, essid);
21842203
testcabovisao(fhout, essidlen, essid);
21852204
testcg3000dv2(fhout, essidlen, essid);
21862205
testcpsrf(fhout, essidlen, essid);

0 commit comments

Comments
 (0)