Skip to content

Commit 6be8d76

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

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

hcxpsktool.c

+16
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,21 @@ podaflag = true;
19631963
return;
19641964
}
19651965
/*===========================================================================*/
1966+
static void testpwf(FILE *fhout, uint8_t essidlen, uint8_t *essid)
1967+
{
1968+
static int k;
1969+
static const char *pwf = "PWF";
1970+
1971+
if(podaflag == true) return;
1972+
if(essidlen < 5) return;
1973+
if(memcmp(essid, pwf, 3) != 0) return;
1974+
if((isdigit((unsigned char)essid[3])) && (isdigit((unsigned char)essid[4])) && (isdigit((unsigned char)essid[5])) && (isdigit((unsigned char)essid[6]))&& (isdigit((unsigned char)essid[7])) && (isdigit((unsigned char)essid[8])) && (isdigit((unsigned char)essid[9])))
1975+
{
1976+
for(k = 0; k < 1000; k++) fprintf(fhout, "%c%c%c%c%c%03d\n", essid[4], essid[5], essid[6], essid[7], essid[8], k);
1977+
}
1978+
return;
1979+
}
1980+
/*===========================================================================*/
19661981
static void testroamingman(FILE *fhout, uint8_t essidlen, uint8_t *essid)
19671982
{
19681983
static int k1, k2, k3;
@@ -2211,6 +2226,7 @@ testmywifi(fhout, essidlen, essid);
22112226
testnet2g(fhout, essidlen, essid);
22122227
testnetv(fhout, essidlen, essid);
22132228
testpoda(fhout, essidlen, essid);
2229+
testpwf(fhout, essidlen, essid);
22142230
testroamingman(fhout, essidlen, essid);
22152231
testrtk(fhout, essidlen, essid);
22162232
testtechnicolor(fhout, essidlen, essid);

0 commit comments

Comments
 (0)