Yarilo v0.9.9
WPA2 Decrypter & Packet Analyzer
|
#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 () |
|
explicit |
yarilo::Database::~Database | ( | ) |
bool yarilo::Database::check_vendors | ( | bool | seeding = false | ) |
bool yarilo::Database::delete_recording | ( | const uuid::UUIDv4 & | uuid | ) | const |
bool yarilo::Database::execute_query | ( | const std::string & | query | ) |
std::vector< std::vector< std::string > > yarilo::Database::get_client_windows | ( | ) |
std::vector< std::vector< std::string > > yarilo::Database::get_clients | ( | ) |
std::vector< std::vector< std::string > > yarilo::Database::get_group_windows | ( | ) |
std::vector< std::string > yarilo::Database::get_recording | ( | const uuid::UUIDv4 & | uuid | ) |
std::vector< std::vector< std::string > > yarilo::Database::get_recordings | ( | ) |
std::string yarilo::Database::get_vendor_name | ( | const std::string & | oid | ) |
std::vector< std::vector< std::string > > yarilo::Database::get_vendors | ( | ) |
bool yarilo::Database::initialize | ( | ) |
bool yarilo::Database::insert_client | ( | const std::string & | address, |
uint32_t | packet_count, | ||
uint32_t | decrypted_packet_count, | ||
const std::string & | network_id ) |
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 ) |
bool yarilo::Database::insert_group_window | ( | const std::string & | network_id, |
uint64_t | start, | ||
uint64_t | end, | ||
uint32_t | packet_count ) |
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 ) |
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 ) |
bool yarilo::Database::insert_vendors | ( | const std::vector< std::pair< std::string, std::string > > & | vendors | ) |
bool yarilo::Database::load_vendors | ( | const std::string & | OID_path | ) |
bool yarilo::Database::recording_exists | ( | const uuid::UUIDv4 & | uuid | ) |
bool yarilo::Database::recording_exists_path | ( | const std::string & | file_path | ) |
bool yarilo::Database::refresh_database | ( | ) |
std::vector< std::vector< std::string > > yarilo::Database::select_query | ( | const std::string & | query | ) |
bool yarilo::Database::vendor_exists | ( | const std::string & | oid | ) |