|
Politician 1.0.0
WiFi Auditing Library for ESP32
|
Functions | |
| static void | appendHex (String &str, const uint8_t *data, size_t len) |
| String | toHC22000 (const HandshakeRecord &rec) |
| Converts a captured HandshakeRecord into the Hashcat 22000 (hc22000) text format. | |
| size_t | writePcapngGlobalHeader (uint8_t *buffer) |
| Writes a PCAPNG Global Header (SHB + IDB). | |
| size_t | writePcapngPacket (const uint8_t *payload, size_t payload_len, int8_t rssi, uint32_t ts_usec, uint8_t *buffer, size_t max_len) |
| Serializes a Raw 802.11 Frame into a PCAPNG Enhanced Packet Block. | |
| size_t | writePcapngRecord (const HandshakeRecord &rec, uint8_t *buffer, size_t max_len) |
| Serializes a HandshakeRecord into PCAPNG Enhanced Packet Blocks. | |
|
static |
Definition at line 6 of file PoliticianFormat.cpp.
Referenced by toHC22000().
| String politician::format::toHC22000 | ( | const HandshakeRecord & | rec | ) |
Converts a captured HandshakeRecord into the Hashcat 22000 (hc22000) text format.
The hc22000 format is an easily copyable string compatible with Hashcat and other modern cracking tools.
| rec | The handshake record. |
Definition at line 14 of file PoliticianFormat.cpp.
References politician::HandshakeRecord::anonce, appendHex(), politician::HandshakeRecord::bssid, CAP_PMKID, politician::HandshakeRecord::eapol_m2, politician::HandshakeRecord::eapol_m2_len, politician::HandshakeRecord::mic, politician::HandshakeRecord::pmkid, politician::HandshakeRecord::ssid, politician::HandshakeRecord::ssid_len, politician::HandshakeRecord::sta, and politician::HandshakeRecord::type.
Referenced by politician::storage::Hc22000FileLogger::append().
| size_t politician::format::writePcapngGlobalHeader | ( | uint8_t * | buffer | ) |
Writes a PCAPNG Global Header (SHB + IDB).
This must be written exactly once at the beginning of a .pcapng file.
| buffer | Output buffer (must be at least 48 bytes). |
Definition at line 46 of file PoliticianFormat.cpp.
Referenced by politician::storage::PcapngFileLogger::append(), and politician::storage::PcapngFileLogger::appendPacket().
| size_t politician::format::writePcapngPacket | ( | const uint8_t * | payload, |
| size_t | payload_len, | ||
| int8_t | rssi, | ||
| uint32_t | ts_usec, | ||
| uint8_t * | buffer, | ||
| size_t | max_len | ||
| ) |
Serializes a Raw 802.11 Frame into a PCAPNG Enhanced Packet Block.
| payload | Raw 802.11 frame. |
| payload_len | Length of the raw frame. |
| rssi | Signal strength. |
| ts_usec | Hardware microsecond timestamp. |
| buffer | Output buffer. |
| max_len | Maximum length of the buffer. |
Definition at line 82 of file PoliticianFormat.cpp.
Referenced by politician::storage::PcapngFileLogger::appendPacket(), and writePcapngRecord().
| size_t politician::format::writePcapngRecord | ( | const HandshakeRecord & | rec, |
| uint8_t * | buffer, | ||
| size_t | max_len | ||
| ) |
Serializes a HandshakeRecord into PCAPNG Enhanced Packet Blocks.
| rec | The handshake record. |
| buffer | Output buffer. |
| max_len | Maximum length of the buffer. Recommended: 1024 bytes. |
Definition at line 119 of file PoliticianFormat.cpp.
References politician::HandshakeRecord::anonce, politician::HandshakeRecord::bssid, CAP_PMKID, politician::HandshakeRecord::channel, politician::HandshakeRecord::eapol_m2, politician::HandshakeRecord::eapol_m2_len, politician::HandshakeRecord::pmkid, politician::HandshakeRecord::ssid, politician::HandshakeRecord::ssid_len, politician::HandshakeRecord::sta, politician::HandshakeRecord::type, and writePcapngPacket().
Referenced by politician::storage::PcapngFileLogger::append().