Exploit databaseDownload repository ZIP
GH-25fc1985744fec336f986521e61a3fb7
chertogun/cve-2020-27301-hostapd
Sources for CVE-2020-27301
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files44
chertogun/cve-2020-27301-hostapdRevision d29c6457cb14
- ↑..Parent directory
- .gitignore
- Makefile
- eap.c
- eap.h
- eap_aka.c
- eap_config.h
- eap_eke.c
- eap_fast.c
- eap_fast_pac.c
- eap_fast_pac.h
- eap_gpsk.c
- eap_gtc.c
- eap_i.h
- eap_ikev2.c
- eap_leap.c
- eap_md5.c
- eap_methods.c
- eap_methods.h
- eap_mschapv2.c
- eap_otp.c
- eap_pax.c
- eap_peap.c
- eap_proxy.h
- eap_proxy_dummy.c
- eap_psk.c
- eap_pwd.c
- eap_sake.c
- eap_sim.c
- eap_teap.c
- eap_teap_pac.c
- eap_teap_pac.h
- eap_tls.c
- eap_tls_common.c
- eap_tls_common.h
- eap_tnc.c
- eap_ttls.c
- eap_vendor_test.c
- eap_wsc.c
- ikev2.c
- ikev2.h
- mschapv2.c
- mschapv2.h
- tncc.c
- tncc.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/eap_peer/mschapv2.h
Text · 834 bytes/*
* MSCHAPV2 (RFC 2759)
* Copyright (c) 2004-2008, Jouni Malinen <[email protected]>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef MSCHAPV2_H
#define MSCHAPV2_H
#define MSCHAPV2_CHAL_LEN 16
#define MSCHAPV2_NT_RESPONSE_LEN 24
#define MSCHAPV2_AUTH_RESPONSE_LEN 20
#define MSCHAPV2_MASTER_KEY_LEN 16
const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
int mschapv2_derive_response(const u8 *username, size_t username_len,
const u8 *password, size_t password_len,
int pwhash,
const u8 *auth_challenge,
const u8 *peer_challenge,
u8 *nt_response, u8 *auth_response,
u8 *master_key);
int mschapv2_verify_auth_response(const u8 *auth_response,
const u8 *buf, size_t buf_len);
#endif /* MSCHAPV2_H */