Skip to content

Commit

Permalink
Finally added EAP SUCCESS to MANA
Browse files Browse the repository at this point in the history
Like WPE, MANA will now let the client connect whether the password is
right or not. In 2014 when we first released this, we used auto crack 'n
add because we didn't understand how MSCHAPv2 really worked. Doh. The
WPE crew had this right.
  • Loading branch information
singe committed Jul 16, 2018
1 parent a08543b commit 11c121e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/eap_server/eap_server_mschapv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ static void eap_mschapv2_process_response(struct eap_sm *sm,
return;
}

os_memcpy(expected, nt_response, 24); //MANA set challenges to match
if (os_memcmp_const(nt_response, expected, 24) == 0) {
const u8 *pw_hash;
u8 pw_hash_buf[16], pw_hash_hash[16];
Expand Down Expand Up @@ -481,6 +482,7 @@ static void eap_mschapv2_process_response(struct eap_sm *sm,
wpa_printf(MSG_DEBUG, "EAP-MSCHAPV2: Invalid NT-Response");
data->state = FAILURE_REQ;
}
data->state = SUCCESS; //MANA WPE
}


Expand Down

0 comments on commit 11c121e

Please sign in to comment.