|
Politician 1.0.0
WiFi Auditing Library for ESP32
|
#include "politician_compat.h"#include <esp_wifi.h>#include <esp_wifi_types.h>#include <freertos/FreeRTOS.h>#include <freertos/task.h>#include <freertos/ringbuf.h>#include <freertos/semphr.h>#include "PoliticianTypes.h"
Include dependency graph for Politician.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | politician::__attribute__ |
| class | politician::Politician |
| The core WiFi handshake capturing engine. More... | |
| struct | politician::Politician::ApCacheEntry.flags |
| struct | politician::Politician::Session.flags |
Namespaces | |
| namespace | politician |
| struct politician::__attribute__ |
Definition at line 43 of file Politician.h.
| Class Members | ||
|---|---|---|
| uint8_t | addr1[6] | |
| uint8_t | addr2[6] | |
| uint8_t | addr3[6] | |
| uint16_t | duration | |
| uint16_t | frame_ctrl | |
| ieee80211_hdr_t | hdr | |
| uint8_t | payload[0] | |
| uint16_t | seq_ctrl | |
| struct politician::Politician::ApCacheEntry.flags |
Definition at line 686 of file Politician.h.
| struct politician::Politician::Session.flags |
Definition at line 763 of file Politician.h.
| Class Members | ||
|---|---|---|
| uint8_t | active: 1 | |
| uint8_t | has_m1: 1 | |
| uint8_t | has_m2: 1 | |
| uint8_t | has_m3: 1 | |
| uint8_t | has_m4: 1 | |
| #define EAPOL_ETHERTYPE_HI 0x88 |
Definition at line 78 of file Politician.h.
| #define EAPOL_ETHERTYPE_LO 0x8E |
Definition at line 79 of file Politician.h.
| #define EAPOL_KEY_DATA 95 |
Definition at line 89 of file Politician.h.
| #define EAPOL_KEY_DATA_LEN 93 |
Definition at line 88 of file Politician.h.
| #define EAPOL_KEY_DESC_TYPE 0 |
Definition at line 83 of file Politician.h.
| #define EAPOL_KEY_INFO 1 |
Definition at line 84 of file Politician.h.
| #define EAPOL_KEY_MIC 77 |
Definition at line 87 of file Politician.h.
| #define EAPOL_KEY_NONCE 13 |
Definition at line 86 of file Politician.h.
| #define EAPOL_LLC_OFFSET 0 |
Definition at line 77 of file Politician.h.
| #define EAPOL_LLC_SIZE 8 |
Definition at line 80 of file Politician.h.
| #define EAPOL_MIN_FRAME_LEN (EAPOL_LLC_SIZE + 4) |
Definition at line 81 of file Politician.h.
| #define EAPOL_REPLAY_COUNTER 5 |
Definition at line 85 of file Politician.h.
| #define FC_FROMDS_MASK 0x0200 |
Definition at line 61 of file Politician.h.
| #define FC_ORDER_MASK 0x8000 |
Definition at line 65 of file Politician.h.
| #define FC_SUBTYPE_MASK 0x00F0 |
Definition at line 59 of file Politician.h.
| #define FC_TODS_MASK 0x0100 |
Definition at line 60 of file Politician.h.
| #define FC_TYPE_CTRL 0x0004 |
Definition at line 63 of file Politician.h.
| #define FC_TYPE_DATA 0x0008 |
Definition at line 64 of file Politician.h.
| #define FC_TYPE_MASK 0x000C |
Definition at line 58 of file Politician.h.
| #define FC_TYPE_MGMT 0x0000 |
Definition at line 62 of file Politician.h.
| #define KEYINFO_ACK 0x0080 |
Definition at line 93 of file Politician.h.
| #define KEYINFO_INSTALL 0x0040 |
Definition at line 96 of file Politician.h.
| #define KEYINFO_MIC 0x0100 |
Definition at line 94 of file Politician.h.
| #define KEYINFO_PAIRWISE 0x0008 |
Definition at line 92 of file Politician.h.
| #define KEYINFO_SECURE 0x0200 |
Definition at line 95 of file Politician.h.
| #define KEYINFO_TYPE_MASK 0x0007 |
Definition at line 91 of file Politician.h.
| #define MGMT_SUB_ASSOC_REQ 0x00 |
Definition at line 67 of file Politician.h.
| #define MGMT_SUB_ASSOC_RESP 0x10 |
Definition at line 68 of file Politician.h.
| #define MGMT_SUB_AUTH 0xB0 |
Definition at line 72 of file Politician.h.
| #define MGMT_SUB_BEACON 0x80 |
Definition at line 71 of file Politician.h.
| #define MGMT_SUB_DEAUTH 0xC0 |
Definition at line 74 of file Politician.h.
| #define MGMT_SUB_DISASSOC 0xA0 |
Definition at line 73 of file Politician.h.
| #define MGMT_SUB_PROBE_REQ 0x40 |
Definition at line 69 of file Politician.h.
| #define MGMT_SUB_PROBE_RESP 0x50 |
Definition at line 70 of file Politician.h.
| #define POLITICIAN_MAX_AP_CACHE 48 |
Definition at line 14 of file Politician.h.
| #define POLITICIAN_MAX_CAPTURED 128 |
Definition at line 22 of file Politician.h.
| #define POLITICIAN_MAX_CHANNELS 50 |
Definition at line 26 of file Politician.h.
| #define POLITICIAN_MAX_INSTANCES 2 |
Maximum number of concurrent Politician instances that can be active at once.
Each instance gets its own ring buffer and worker task, but they share the single Wi-Fi radio — channel changes made by one instance affect all others. On standard ESP32/ESP32-S2/ESP32-C3 the practical limit is 1; on ESP32-S3 with an external SPI radio a second instance can operate on that interface. Define before including Politician.h to override the default of 2.
Definition at line 38 of file Politician.h.
| #define POLITICIAN_MAX_SESSIONS 8 |
Definition at line 18 of file Politician.h.