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

#include <database.h>

Public Member Functions

 Database (const std::string &db_path)
 
 ~Database ()
 
bool initialize ()
 
bool execute_query (const std::string &query)
 
std::vector< std::vector< std::string > > select_query (const std::string &query)
 
bool check_vendors (bool seeding=false)
 
bool insert_recording (const uuid::UUIDv4 &uuid, const std::string &display_name, const std::string &file_path, int64_t start, int64_t end, proto::DataLinkType data_link)
 
std::vector< std::vector< std::string > > get_recordings ()
 
std::vector< std::string > get_recording (const uuid::UUIDv4 &uuid)
 
bool delete_recording (const uuid::UUIDv4 &uuid) const
 
bool recording_exists (const uuid::UUIDv4 &uuid)
 
bool recording_exists_path (const std::string &file_path)
 
bool load_vendors (const std::string &OID_path)
 
bool insert_vendors (const std::vector< std::pair< std::string, std::string > > &vendors)
 
std::vector< std::vector< std::string > > get_vendors ()
 
std::string get_vendor_name (const std::string &oid)
 
bool vendor_exists (const std::string &oid)
 
bool insert_network (const std::string &ssid, const std::string &bssid, const std::string &psk, uint32_t total_packet_count, uint32_t decrypted_packet_count, uint32_t group_packet_count, const std::string &security, std::string recording_id, uint32_t group_rekeys, const std::string &vendor_oid)
 
bool insert_group_window (const std::string &network_id, uint64_t start, uint64_t end, uint32_t packet_count)
 
std::vector< std::vector< std::string > > get_group_windows ()
 
bool insert_client (const std::string &address, uint32_t packet_count, uint32_t decrypted_packet_count, const std::string &network_id)
 
std::vector< std::vector< std::string > > get_clients ()
 
bool insert_client_window (const std::string &client_address, const std::string &network_id, uint64_t start, uint64_t end, uint32_t packet_count)
 
std::vector< std::vector< std::string > > get_client_windows ()
 
bool refresh_database ()
 

Constructor & Destructor Documentation

◆ Database()

yarilo::Database::Database ( const std::string & db_path)
explicit

◆ ~Database()

yarilo::Database::~Database ( )

Member Function Documentation

◆ check_vendors()

bool yarilo::Database::check_vendors ( bool seeding = false)

◆ delete_recording()

bool yarilo::Database::delete_recording ( const uuid::UUIDv4 & uuid) const

◆ execute_query()

bool yarilo::Database::execute_query ( const std::string & query)

◆ get_client_windows()

std::vector< std::vector< std::string > > yarilo::Database::get_client_windows ( )

◆ get_clients()

std::vector< std::vector< std::string > > yarilo::Database::get_clients ( )

◆ get_group_windows()

std::vector< std::vector< std::string > > yarilo::Database::get_group_windows ( )

◆ get_recording()

std::vector< std::string > yarilo::Database::get_recording ( const uuid::UUIDv4 & uuid)

◆ get_recordings()

std::vector< std::vector< std::string > > yarilo::Database::get_recordings ( )

◆ get_vendor_name()

std::string yarilo::Database::get_vendor_name ( const std::string & oid)

◆ get_vendors()

std::vector< std::vector< std::string > > yarilo::Database::get_vendors ( )

◆ initialize()

bool yarilo::Database::initialize ( )

◆ insert_client()

bool yarilo::Database::insert_client ( const std::string & address,
uint32_t packet_count,
uint32_t decrypted_packet_count,
const std::string & network_id )

◆ insert_client_window()

bool yarilo::Database::insert_client_window ( const std::string & client_address,
const std::string & network_id,
uint64_t start,
uint64_t end,
uint32_t packet_count )

◆ insert_group_window()

bool yarilo::Database::insert_group_window ( const std::string & network_id,
uint64_t start,
uint64_t end,
uint32_t packet_count )

◆ insert_network()

bool yarilo::Database::insert_network ( const std::string & ssid,
const std::string & bssid,
const std::string & psk,
uint32_t total_packet_count,
uint32_t decrypted_packet_count,
uint32_t group_packet_count,
const std::string & security,
std::string recording_id,
uint32_t group_rekeys,
const std::string & vendor_oid )

◆ insert_recording()

bool yarilo::Database::insert_recording ( const uuid::UUIDv4 & uuid,
const std::string & display_name,
const std::string & file_path,
int64_t start,
int64_t end,
proto::DataLinkType data_link )

◆ insert_vendors()

bool yarilo::Database::insert_vendors ( const std::vector< std::pair< std::string, std::string > > & vendors)

◆ load_vendors()

bool yarilo::Database::load_vendors ( const std::string & OID_path)

◆ recording_exists()

bool yarilo::Database::recording_exists ( const uuid::UUIDv4 & uuid)

◆ recording_exists_path()

bool yarilo::Database::recording_exists_path ( const std::string & file_path)

◆ refresh_database()

bool yarilo::Database::refresh_database ( )

◆ select_query()

std::vector< std::vector< std::string > > yarilo::Database::select_query ( const std::string & query)

◆ vendor_exists()

bool yarilo::Database::vendor_exists ( const std::string & oid)

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