Yarilo v0.9.9
WPA2 Decrypter & Packet Analyzer
Loading...
Searching...
No Matches
yarilo::Recording Class Reference

Recordings utility class. More...

#include <recording.h>

Classes

struct  info
 Information about a saved recording. More...
 

Public Types

enum class  DataLinkType { UNKNOWN , RADIOTAP , RAW80211 , ETH2 }
 data link of a saved recording More...
 

Public Member Functions

 Recording (const std::filesystem::path &save_dir, bool dump_raw, Database &db, const std::string &display_name)
 
std::optional< infodump (std::shared_ptr< PacketChannel > channel) const
 
std::optional< infodump (std::vector< Tins::Packet * > *packets) const
 

Static Public Member Functions

static std::unique_ptr< Tins::Packet > make_eth_packet (Tins::Packet *pkt)
 

Detailed Description

Recordings utility class.

Member Enumeration Documentation

◆ DataLinkType

data link of a saved recording

Enumerator
UNKNOWN 
RADIOTAP 
RAW80211 
ETH2 

Constructor & Destructor Documentation

◆ Recording()

yarilo::Recording::Recording ( const std::filesystem::path & save_dir,
bool dump_raw,
Database & db,
const std::string & display_name )

Constructs a new Recording object.

Parameters
[in]save_dirThe directory where the recordings will be saved.
[in]dump_rawA boolean indicating whether to dump raw packet data.
[in]dbDatabase reference.
[in]display_nameDisplay name for the recording.

Member Function Documentation

◆ dump() [1/2]

std::optional< recording_info > yarilo::Recording::dump ( std::shared_ptr< PacketChannel > channel) const

Dumps the packets from the given PacketChannel to a recording file.

Parameters
[in]channelA shared pointer to the PacketChannel containing the packets to dump.
Returns
An optional containing some info about the recording.

◆ dump() [2/2]

std::optional< recording_info > yarilo::Recording::dump ( std::vector< Tins::Packet * > * packets) const

Dumps the packets from the given packet vector to a recording file.

Parameters
[in]channelA shared pointer to the PacketChannel containing the packets to dump.
Returns
An optional containing some info about the recording.

◆ make_eth_packet()

std::unique_ptr< Tins::Packet > yarilo::Recording::make_eth_packet ( Tins::Packet * pkt)
static

Create an ethernet packet based on the decrypted 802.11 data packet

Parameters
[in]pktThe 802.11 Data packet to convert
Returns
The converted ethernet packet

The documentation for this class was generated from the following files: