Politician 1.0.0
WiFi Auditing Library for ESP32
Loading...
Searching...
No Matches
PoliticianStress.h
Go to the documentation of this file.
1#pragma once
2#include <stdint.h>
3#include <cstring>
4
5namespace politician {
6
7/**
8 * @brief PoliticianStress: Decoupled DoS / Disruption Payload Delivery System
9 *
10 * Includes raw 802.11 framing mechanisms capable of flooding access points
11 * with Management frames. If this header is not explicitly included in the user's
12 * sketch, the C++ Linker will completely omit these offensive payloads from memory.
13 */
14namespace stress {
15
16 /**
17 * @brief Blasts a massive SAE (Simultaneous Authentication of Equals) Commit flood.
18 * Forces WPA3 routers to rapidly consume heap memory parsing anti-clogging tokens.
19 *
20 * @param bssid Target router's MAC address
21 * @param count Number of frames to fire natively
22 */
23 void saeCommitFlood(const uint8_t* bssid, uint32_t count = 1000);
24
25 /**
26 * @brief Blasts out massive strings of randomized Probe Requests to overwhelm
27 * local Access Points with client association processing queues.
28 *
29 * @param count Number of frames to fire natively
30 */
31 void probeRequestFlood(uint32_t count = 1000);
32
33 /**
34 * @brief Transmits beacon frames with rotating fake SSIDs to stress-test AP
35 * table management and SSID announcement handling.
36 *
37 * Each beacon advertises an open (no RSN IE), ESS network on the given channel.
38 * Source MACs are randomized per frame. Call only from a task that can tolerate
39 * the blocking delay loop (one frame every ~5ms for the duration).
40 *
41 * @param ssids Array of C-string SSIDs to cycle through
42 * @param ssidCount Number of entries in @p ssids
43 * @param channel 802.11 channel to advertise on (1-13 for 2.4GHz)
44 * @param durationMs Total duration of the flood in milliseconds
45 */
46 void beaconFlood(const char **ssids, uint8_t ssidCount,
47 uint8_t channel, uint32_t durationMs);
48
49}
50}
void beaconFlood(const char **ssids, uint8_t ssidCount, uint8_t channel, uint32_t durationMs)
Transmits beacon frames with rotating fake SSIDs to stress-test AP table management and SSID announce...
void probeRequestFlood(uint32_t count)
Blasts out massive strings of randomized Probe Requests to overwhelm local Access Points with client ...
void saeCommitFlood(const uint8_t *bssid, uint32_t count)
Blasts a massive SAE (Simultaneous Authentication of Equals) Commit flood.