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

Service delivering an external gRPC API. More...

#include <service.h>

Inheritance diagram for yarilo::Service:

Classes

struct  config
 Configuration of the service. More...
 

Public Member Functions

 Service (const config &cfg)
 
std::optional< uuid::UUIDv4add_file_sniffer (const std::filesystem::path &file)
 
std::optional< uuid::UUIDv4add_iface_sniffer (const std::string &iface_name)
 
void shutdown ()
 
void clean_save_dir ()
 
grpc::Status SnifferCreate (grpc::ServerContext *context, const proto::SnifferCreateRequest *request, proto::SnifferID *reply) override
 
grpc::Status SnifferDestroy (grpc::ServerContext *context, const proto::SnifferID *request, proto::Empty *reply) override
 
grpc::Status SnifferList (grpc::ServerContext *context, const proto::Empty *request, proto::SnifferListResponse *reply) override
 
grpc::Status AccessPointList (grpc::ServerContext *context, const proto::SnifferID *request, proto::APListResponse *reply) override
 
grpc::Status AccessPointGet (grpc::ServerContext *context, const proto::APGetRequest *request, proto::APGetResponse *reply) override
 
grpc::Status AccessPointProvidePassword (grpc::ServerContext *context, const proto::APProvidePasswordRequest *request, proto::APProvidePasswordResponse *reply) override
 
grpc::Status AccessPointGetDeryptedStream (grpc::ServerContext *context, const proto::APGetDeryptedStreamRequest *request, grpc::ServerWriter< proto::Packet > *writer) override
 
grpc::Status AccessPointDeauth (grpc::ServerContext *context, const proto::APDeauthRequest *request, proto::Empty *reply) override
 
grpc::Status AccessPointDeauthClient (grpc::ServerContext *context, const proto::APDeauthClientRequest *request, proto::Empty *reply) override
 
grpc::Status AccessPointGetHash (grpc::ServerContext *context, const proto::APGetHashRequest *request, proto::APGetHashResponse *reply) override
 
grpc::Status AccessPointIgnore (grpc::ServerContext *context, const proto::APIgnoreRequest *request, proto::Empty *reply) override
 
grpc::Status AccessPointListIgnored (grpc::ServerContext *context, const proto::SnifferID *request, proto::APListResponse *reply) override
 
grpc::Status AccessPointCreateRecording (grpc::ServerContext *context, const proto::APCreateRecordingRequest *request, proto::APCreateRecordingResponse *reply) override
 
grpc::Status FocusStart (grpc::ServerContext *context, const proto::FocusStartRequest *request, proto::FocusStartResponse *reply) override
 
grpc::Status FocusGetActive (grpc::ServerContext *context, const proto::SnifferID *request, proto::FocusGetActiveResponse *reply) override
 
grpc::Status FocusStop (grpc::ServerContext *context, const proto::SnifferID *request, proto::Empty *reply) override
 
grpc::Status RecordingCreate (grpc::ServerContext *context, const proto::RecordingCreateRequest *request, proto::RecordingCreateResponse *reply) override
 
grpc::Status RecordingList (grpc::ServerContext *context, const proto::RecordingListRequest *request, proto::RecordingListResponse *reply) override
 
grpc::Status RecordingLoadDecrypted (grpc::ServerContext *context, const proto::RecordingLoadDecryptedRequest *request, grpc::ServerWriter< proto::Packet > *writer) override
 
grpc::Status NetworkInterfaceList (grpc::ServerContext *context, const proto::Empty *request, proto::NetworkInterfaceListResponse *reply) override
 
grpc::Status LogGetStream (grpc::ServerContext *context, const proto::Empty *request, grpc::ServerWriter< proto::LogEntry > *writer) override
 
grpc::Status BatteryGetLevel (grpc::ServerContext *context, const proto::Empty *request, proto::BatteryGetLevelResponse *reply) override
 

Detailed Description

Service delivering an external gRPC API.

Constructor & Destructor Documentation

◆ Service()

yarilo::Service::Service ( const config & cfg)

Member Function Documentation

◆ AccessPointCreateRecording()

grpc::Status yarilo::Service::AccessPointCreateRecording ( grpc::ServerContext * context,
const proto::APCreateRecordingRequest * request,
proto::APCreateRecordingResponse * reply )
override

◆ AccessPointDeauth()

grpc::Status yarilo::Service::AccessPointDeauth ( grpc::ServerContext * context,
const proto::APDeauthRequest * request,
proto::Empty * reply )
override

◆ AccessPointDeauthClient()

grpc::Status yarilo::Service::AccessPointDeauthClient ( grpc::ServerContext * context,
const proto::APDeauthClientRequest * request,
proto::Empty * reply )
override

◆ AccessPointGet()

grpc::Status yarilo::Service::AccessPointGet ( grpc::ServerContext * context,
const proto::APGetRequest * request,
proto::APGetResponse * reply )
override

◆ AccessPointGetDeryptedStream()

grpc::Status yarilo::Service::AccessPointGetDeryptedStream ( grpc::ServerContext * context,
const proto::APGetDeryptedStreamRequest * request,
grpc::ServerWriter< proto::Packet > * writer )
override

◆ AccessPointGetHash()

grpc::Status yarilo::Service::AccessPointGetHash ( grpc::ServerContext * context,
const proto::APGetHashRequest * request,
proto::APGetHashResponse * reply )
override

◆ AccessPointIgnore()

grpc::Status yarilo::Service::AccessPointIgnore ( grpc::ServerContext * context,
const proto::APIgnoreRequest * request,
proto::Empty * reply )
override

◆ AccessPointList()

grpc::Status yarilo::Service::AccessPointList ( grpc::ServerContext * context,
const proto::SnifferID * request,
proto::APListResponse * reply )
override

◆ AccessPointListIgnored()

grpc::Status yarilo::Service::AccessPointListIgnored ( grpc::ServerContext * context,
const proto::SnifferID * request,
proto::APListResponse * reply )
override

◆ AccessPointProvidePassword()

grpc::Status yarilo::Service::AccessPointProvidePassword ( grpc::ServerContext * context,
const proto::APProvidePasswordRequest * request,
proto::APProvidePasswordResponse * reply )
override

◆ add_file_sniffer()

std::optional< uuid::UUIDv4 > yarilo::Service::add_file_sniffer ( const std::filesystem::path & file)

◆ add_iface_sniffer()

std::optional< uuid::UUIDv4 > yarilo::Service::add_iface_sniffer ( const std::string & iface_name)

◆ BatteryGetLevel()

grpc::Status yarilo::Service::BatteryGetLevel ( grpc::ServerContext * context,
const proto::Empty * request,
proto::BatteryGetLevelResponse * reply )
override

◆ clean_save_dir()

void yarilo::Service::clean_save_dir ( )

◆ FocusGetActive()

grpc::Status yarilo::Service::FocusGetActive ( grpc::ServerContext * context,
const proto::SnifferID * request,
proto::FocusGetActiveResponse * reply )
override

◆ FocusStart()

grpc::Status yarilo::Service::FocusStart ( grpc::ServerContext * context,
const proto::FocusStartRequest * request,
proto::FocusStartResponse * reply )
override

◆ FocusStop()

grpc::Status yarilo::Service::FocusStop ( grpc::ServerContext * context,
const proto::SnifferID * request,
proto::Empty * reply )
override

◆ LogGetStream()

grpc::Status yarilo::Service::LogGetStream ( grpc::ServerContext * context,
const proto::Empty * request,
grpc::ServerWriter< proto::LogEntry > * writer )
override

◆ NetworkInterfaceList()

grpc::Status yarilo::Service::NetworkInterfaceList ( grpc::ServerContext * context,
const proto::Empty * request,
proto::NetworkInterfaceListResponse * reply )
override

◆ RecordingCreate()

grpc::Status yarilo::Service::RecordingCreate ( grpc::ServerContext * context,
const proto::RecordingCreateRequest * request,
proto::RecordingCreateResponse * reply )
override

◆ RecordingList()

grpc::Status yarilo::Service::RecordingList ( grpc::ServerContext * context,
const proto::RecordingListRequest * request,
proto::RecordingListResponse * reply )
override

◆ RecordingLoadDecrypted()

grpc::Status yarilo::Service::RecordingLoadDecrypted ( grpc::ServerContext * context,
const proto::RecordingLoadDecryptedRequest * request,
grpc::ServerWriter< proto::Packet > * writer )
override

◆ shutdown()

void yarilo::Service::shutdown ( )

◆ SnifferCreate()

grpc::Status yarilo::Service::SnifferCreate ( grpc::ServerContext * context,
const proto::SnifferCreateRequest * request,
proto::SnifferID * reply )
override

◆ SnifferDestroy()

grpc::Status yarilo::Service::SnifferDestroy ( grpc::ServerContext * context,
const proto::SnifferID * request,
proto::Empty * reply )
override

◆ SnifferList()

grpc::Status yarilo::Service::SnifferList ( grpc::ServerContext * context,
const proto::Empty * request,
proto::SnifferListResponse * reply )
override

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