|
Politician 1.0.0
WiFi Auditing Library for ESP32
|
Helper for writing HandshakeRecords to a standard PCAPNG file. More...
#include <PoliticianStorage.h>
Static Public Member Functions | |
| static bool | append (fs::FS &fs, const char *path, const HandshakeRecord &rec) |
| Appends a HandshakeRecord to a file as PCAPNG. | |
| static bool | appendPacket (fs::FS &fs, const char *path, const uint8_t *payload, uint16_t len, int8_t rssi, uint32_t ts_usec) |
| Appends a raw 802.11 sniffer frame to a PCAPNG file (used for intel gathering). | |
Helper for writing HandshakeRecords to a standard PCAPNG file.
Definition at line 15 of file PoliticianStorage.h.
|
inlinestatic |
Appends a HandshakeRecord to a file as PCAPNG.
If the file is empty, it automatically writes the global PCAPNG Header Block first.
| fs | The filesystem (e.g., SD, LittleFS) |
| path | The path to the file (e.g., "/captures.pcapng") |
| rec | The HandshakeRecord to write |
Definition at line 26 of file PoliticianStorage.h.
References politician::format::writePcapngGlobalHeader(), and politician::format::writePcapngRecord().
|
inlinestatic |
Appends a raw 802.11 sniffer frame to a PCAPNG file (used for intel gathering).
| fs | The filesystem (e.g., SD, LittleFS) |
| path | The path to the file (e.g., "/intel.pcapng") |
| payload | Raw packet data |
| len | Packet length |
| rssi | Signal strength |
| ts_usec | Hardware microsecond timestamp |
Definition at line 66 of file PoliticianStorage.h.
References politician::format::writePcapngGlobalHeader(), and politician::format::writePcapngPacket().