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 files36
chertogun/cve-2020-27301-hostapdRevision d29c6457cb14
- ↑..Parent directory
- Makefile
- http.h
- http_client.c
- http_client.h
- http_server.c
- http_server.h
- httpread.c
- httpread.h
- ndef.c
- upnp_xml.c
- upnp_xml.h
- wps.c
- wps.h
- wps_attr_build.c
- wps_attr_parse.c
- wps_attr_parse.h
- wps_attr_process.c
- wps_common.c
- wps_defs.h
- wps_dev_attr.c
- wps_dev_attr.h
- wps_enrollee.c
- wps_er.c
- wps_er.h
- wps_er_ssdp.c
- wps_i.h
- wps_module_tests.c
- wps_registrar.c
- wps_upnp.c
- wps_upnp.h
- wps_upnp_ap.c
- wps_upnp_event.c
- wps_upnp_i.h
- wps_upnp_ssdp.c
- wps_upnp_web.c
- wps_validate.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/wps/wps_upnp.h
Text · 1,363 bytes/*
* UPnP WPS Device
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <[email protected]>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#ifndef WPS_UPNP_H
#define WPS_UPNP_H
#include "utils/list.h"
struct upnp_wps_device_sm;
struct wps_context;
struct wps_data;
struct upnp_wps_peer {
struct dl_list list;
struct wps_data *wps;
};
enum upnp_wps_wlanevent_type {
UPNP_WPS_WLANEVENT_TYPE_PROBE = 1,
UPNP_WPS_WLANEVENT_TYPE_EAP = 2
};
struct upnp_wps_device_ctx {
int (*rx_req_put_wlan_response)(
void *priv, enum upnp_wps_wlanevent_type ev_type,
const u8 *mac_addr, const struct wpabuf *msg,
enum wps_msg_type msg_type);
char *ap_pin;
};
struct upnp_wps_device_sm *
upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
void *priv, char *net_if);
void upnp_wps_device_deinit(struct upnp_wps_device_sm *sm, void *priv);
int upnp_wps_device_send_wlan_event(struct upnp_wps_device_sm *sm,
const u8 from_mac_addr[ETH_ALEN],
enum upnp_wps_wlanevent_type ev_type,
const struct wpabuf *msg);
int upnp_wps_subscribers(struct upnp_wps_device_sm *sm);
int upnp_wps_set_ap_pin(struct upnp_wps_device_sm *sm, const char *ap_pin);
#endif /* WPS_UPNP_H */