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 files119
chertogun/cve-2020-27301-hostapdRevision d29c6457cb14
- ↑..Parent directory
- binder/
- dbus/
- doc/
- examples/
- systemd/
- utils/
- vs2005/
- wpa_gui-qt4/
- .gitignore
- Android.mk
- ChangeLog
- Makefile
- README
- README-DPP
- README-HS20
- README-P2P
- README-WPS
- README-Windows.txt
- android.config
- ap.c
- ap.h
- autoscan.c
- autoscan.h
- autoscan_exponential.c
- autoscan_periodic.c
- bgscan.c
- bgscan.h
- bgscan_learn.c
- bgscan_simple.c
- bss.c
- bss.h
- bssid_ignore.c
- bssid_ignore.h
- config.c
- config.h
- config_file.c
- config_none.c
- config_ssid.h
- config_winreg.c
- ctrl_iface.c
- ctrl_iface.h
- ctrl_iface_named_pipe.c
- ctrl_iface_udp.c
- ctrl_iface_unix.c
- defconfig
- dpp_supplicant.c
- dpp_supplicant.h
- driver_i.h
- eap_proxy_dummy.mak
- eap_proxy_dummy.mk
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wpa_supplicant/config_none.c
C · 1,281 bytes/*
* WPA Supplicant / Configuration backend: empty starting point
* Copyright (c) 2003-2005, Jouni Malinen <[email protected]>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This file implements stub example of a configuration backend. None of the
* functions are actually implemented so this can be used as a simple
* compilation test or a starting point for a new configuration backend.
*/
#include "includes.h"
#include "common.h"
#include "config.h"
#include "base64.h"
struct wpa_config * wpa_config_read(const char *name, struct wpa_config *cfgp)
{
struct wpa_config *config;
if (name == NULL)
return NULL;
if (cfgp)
config = cfgp;
else
config = wpa_config_alloc_empty(NULL, NULL);
if (config == NULL)
return NULL;
/* TODO: fill in configuration data */
return config;
}
int wpa_config_write(const char *name, struct wpa_config *config)
{
struct wpa_ssid *ssid;
struct wpa_config_blob *blob;
wpa_printf(MSG_DEBUG, "Writing configuration file '%s'", name);
/* TODO: write global config parameters */
for (ssid = config->ssid; ssid; ssid = ssid->next) {
/* TODO: write networks */
}
for (blob = config->blobs; blob; blob = blob->next) {
/* TODO: write blobs */
}
return 0;
}